pub struct OnboardingField {
pub key: String,
pub prompt: String,
pub description: Option<String>,
pub field_type: OnboardingFieldType,
pub default: Option<String>,
pub placeholder: Option<String>,
}Expand description
A field descriptor for capsule onboarding.
Fields§
§key: StringThe environment variable key.
prompt: StringThe prompt shown to the user.
description: Option<String>Optional description for additional context.
field_type: OnboardingFieldTypeThe input type for this field.
default: Option<String>Optional default value.
placeholder: Option<String>Placeholder hint text shown when the input is empty (e.g. "sk-...").
Trait Implementations§
Source§impl Clone for OnboardingField
impl Clone for OnboardingField
Source§fn clone(&self) -> OnboardingField
fn clone(&self) -> OnboardingField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnboardingField
impl Debug for OnboardingField
Source§impl<'de> Deserialize<'de> for OnboardingField
impl<'de> Deserialize<'de> for OnboardingField
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
Source§impl PartialEq for OnboardingField
impl PartialEq for OnboardingField
Source§fn eq(&self, other: &OnboardingField) -> bool
fn eq(&self, other: &OnboardingField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OnboardingField
impl Serialize for OnboardingField
impl StructuralPartialEq for OnboardingField
Auto Trait Implementations§
impl Freeze for OnboardingField
impl RefUnwindSafe for OnboardingField
impl Send for OnboardingField
impl Sync for OnboardingField
impl Unpin for OnboardingField
impl UnsafeUnpin for OnboardingField
impl UnwindSafe for OnboardingField
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