pub struct WizardCarddavConfig {
pub account_name: String,
pub project_name: String,
pub email: Option<String>,
pub auth: CarddavAuth,
pub bearer_only: bool,
}Available on crate features
carddav and wizard only.Expand description
Context and prompt defaults for the CardDAV wizard.
Doubles as the wizard’s return value: account_name / project_name
seed the default secret command and are carried back untouched, and
email (when set) seeds the username default. The wizard collects
authentication only; the server is resolved by discovery, not
prompted.
Fields§
§account_name: StringAccount name, used to seed the default secret command.
project_name: StringProject (binary) name, used to seed the default secret command.
email: Option<String>Account email, used as the username default when set.
auth: CarddavAuthThe authentication method and its secret.
bearer_only: boolWhen set, drop the Basic option from the authentication-strategy prompt (e.g. Google, which only accepts OAuth 2.0 tokens).
Trait Implementations§
Source§impl Clone for WizardCarddavConfig
impl Clone for WizardCarddavConfig
Source§fn clone(&self) -> WizardCarddavConfig
fn clone(&self) -> WizardCarddavConfig
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 WizardCarddavConfig
impl Debug for WizardCarddavConfig
Source§impl Default for WizardCarddavConfig
impl Default for WizardCarddavConfig
Source§fn default() -> WizardCarddavConfig
fn default() -> WizardCarddavConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WizardCarddavConfig
impl RefUnwindSafe for WizardCarddavConfig
impl Send for WizardCarddavConfig
impl Sync for WizardCarddavConfig
impl Unpin for WizardCarddavConfig
impl UnsafeUnpin for WizardCarddavConfig
impl UnwindSafe for WizardCarddavConfig
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