pub struct FieldDef {
pub key: String,
pub label: String,
pub field_type: String,
pub secret: bool,
pub required: bool,
}Expand description
What one field name means.
Fields§
§key: String§label: String§field_type: StringHow this field is encoded and acquired (design §3.2). std:string is a
CBOR string obtained by prompting; std:oauth2 is a CBOR map obtained by
running the flow. Defaults to std:string.
secret: bool§required: boolWhether the field must be present. Meaningful for a declaration — a component may mark one optional — and defaults to true everywhere else, since a definition describes what a name means rather than what any one credential needs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldDef
impl<'de> Deserialize<'de> for FieldDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FieldDef
impl StructuralPartialEq for FieldDef
Auto Trait Implementations§
impl Freeze for FieldDef
impl RefUnwindSafe for FieldDef
impl Send for FieldDef
impl Sync for FieldDef
impl Unpin for FieldDef
impl UnsafeUnpin for FieldDef
impl UnwindSafe for FieldDef
Blanket Implementations§
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
Mutably borrows from an owned value. Read more