pub struct FieldSpec {
pub key: FieldKey,
pub label: String,
pub help: String,
pub required: bool,
pub secret: bool,
pub default: Option<String>,
}Expand description
One input in a provider’s connection form.
Fields§
§key: FieldKey§label: String§help: String§required: bool§secret: boolTrue for the token/password field — masked in the UI, write-only to the keychain.
default: Option<String>A suggested default (e.g. the provider name for the display name).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldSpec
impl RefUnwindSafe for FieldSpec
impl Send for FieldSpec
impl Sync for FieldSpec
impl Unpin for FieldSpec
impl UnsafeUnpin for FieldSpec
impl UnwindSafe for FieldSpec
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