pub struct SettingDecl {
pub param: ParamDecl,
pub secret: bool,
}Expand description
One setting, owned. Mirrors AddonSetting.
Fields§
§param: ParamDeclThe parameter it is.
secret: boolWhether it goes to the credential store rather than the settings file (ADR-0013). A secret’s value never crosses this pipe on the way out.
Trait Implementations§
Source§impl Clone for SettingDecl
impl Clone for SettingDecl
Source§fn clone(&self) -> SettingDecl
fn clone(&self) -> SettingDecl
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 SettingDecl
impl Debug for SettingDecl
Source§impl<'de> Deserialize<'de> for SettingDecl
impl<'de> Deserialize<'de> for SettingDecl
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 SettingDecl
impl PartialEq for SettingDecl
Source§fn eq(&self, other: &SettingDecl) -> bool
fn eq(&self, other: &SettingDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SettingDecl
impl Serialize for SettingDecl
impl Eq for SettingDecl
impl StructuralPartialEq for SettingDecl
Auto Trait Implementations§
impl Freeze for SettingDecl
impl RefUnwindSafe for SettingDecl
impl Send for SettingDecl
impl Sync for SettingDecl
impl Unpin for SettingDecl
impl UnsafeUnpin for SettingDecl
impl UnwindSafe for SettingDecl
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