pub struct UseRequest {Show 32 fields
pub id: String,
pub agent: String,
pub block_id: String,
pub entry_id: String,
pub entry_label: String,
pub what: String,
pub origin: String,
pub page: String,
pub field: String,
pub offer_always: bool,
pub reason: String,
pub agent_reason: String,
pub needs_value: bool,
pub kind: String,
pub command: String,
pub cwd: String,
pub replaces: bool,
pub signin: bool,
pub shared: bool,
pub share: bool,
pub prompt: Option<UseHttpPrompt>,
pub account: bool,
pub change: bool,
pub requested_ms: u64,
pub deadline_ms: u64,
pub expires_ms: u64,
pub goes_ahead: bool,
pub set_by: String,
pub set_ms: u64,
pub set_what: String,
pub import: Option<UseImport>,
pub choices: Option<Vec<UseChoice>>,
}Fields§
§id: String§agent: StringThe agent, as its verified identity names it.
block_id: StringThe asking agent’s own pane, where the person answers it; empty when it has none.
entry_id: String§entry_label: String§what: StringWhat is being filled: “Card number”, “Social Security number”.
origin: StringThe site the field is on (its frame’s origin).
page: StringThe page’s own origin, when the field is in another site’s frame (a payment provider’s hosted field): the question is then about that frame on that page, and “Always” is for the pair. Empty for a field of the page itself.
field: StringThe field, as a person reads it.
offer_always: boolWhether “Always on this site” is offered: only when the field looks like what the entry is.
reason: StringWhy the person is being asked: it is a new site, or the field doesn’t look like what the entry is.
agent_reason: StringThe agent’s own reason for asking, one line of at most 300 characters; shown as “
needs_value: boolThere is no entry yet: the person types the value in the prompt, and may keep it in the Vault (spec section 6.5).
kind: StringThe kind of entry that would be kept, when needs_value.
command: StringA command the agent runs with the value in its environment (spec section 7.3);
empty for a web form. origin and field are then empty too.
cwd: StringThe command’s working directory, when command is set.
replaces: boolWhat command prints replaces the entry’s value (capture); nothing is
given to the command.
signin: boolAn agent’s sign-in with a saved login (Browser signin): field is
then the masked user name, and “Always” is for this agent on this site.
With signin: the login belongs to another profile and the person shared it with this agent, which uses it in
its own profile. Not sent to the pane: only srv reads it, to answer a card whose share was removed.
An agent asks the person to share a login with it (Vault share): origin is the login’s site and field
its user name as the card shows it. Never goes ahead on silence, and offers “Always” only with prompt.
prompt: Option<UseHttpPrompt>With share: the login answers a site’s HTTP prompt or a proxy’s, which the browser answers itself in the
agent’s own profile. “Always” then means the browser answers it there without asking again.
account: boolAn agent’s new account on a sign-up form (Browser generate_password): the
Vault makes the password. There is no entry yet; origin is the site.
change: boolWith account: the form changes the password of an account that already exists (a
current-password field, §7.3), so the Vault keeps the old one and the question has no “Always”.
requested_ms: u64§deadline_ms: u64When silence decides: it goes ahead then if goes_ahead, else it is
denied. Set by Uses::ask; a hold moves it.
expires_ms: u64The latest a hold can move deadline_ms to: the request’s own wait.
goes_ahead: boolNobody answering lets it go ahead, once.
set_by: StringThe agent that set the entry’s value, when an agent had the Vault read it (an import or a capture) and the person has
not seen it yet (agent_set); empty for any other use. Such a use never goes ahead on silence, offers no Always, and
the card says who set the value and when.
set_ms: u64When set_by set it, in ms.
set_what: StringWhat set_by set: value, site or value and site (a site, realm or proxy an agent chose for a login).
import: Option<UseImport>A secret an agent wants copied into the Vault from another service (Vault import); never goes ahead on silence.
choices: Option<Vec<UseChoice>>The cards the person may pick from, when the agent named none or named one the person may swap
(Browser fill of a whole card): none for any other use. entry_id is the one preselected, if any.
Trait Implementations§
Source§impl Clone for UseRequest
impl Clone for UseRequest
Source§fn clone(&self) -> UseRequest
fn clone(&self) -> UseRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UseRequest
impl Debug for UseRequest
Source§impl Default for UseRequest
impl Default for UseRequest
Source§fn default() -> UseRequest
fn default() -> UseRequest
Source§impl PartialEq for UseRequest
impl PartialEq for UseRequest
Source§impl Serialize for UseRequest
impl Serialize for UseRequest
impl StructuralPartialEq for UseRequest
Source§impl TS for UseRequest
impl TS for UseRequest
Source§type WithoutGenerics = UseRequest
type WithoutGenerics = UseRequest
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = UseRequest
type OptionInnerType = UseRequest
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributes§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export]. Read moreAuto Trait Implementations§
impl Freeze for UseRequest
impl RefUnwindSafe for UseRequest
impl Send for UseRequest
impl Sync for UseRequest
impl Unpin for UseRequest
impl UnsafeUnpin for UseRequest
impl UnwindSafe for UseRequest
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more