pub struct ConfigSynonym { /* private fields */ }Expand description
A configuration synonym of a ConfigEntry.
Corresponds to ConfigEntry.ConfigSynonym.
Implementations§
Source§impl ConfigSynonym
impl ConfigSynonym
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of this configuration (this may be different from the
name of the associated ConfigEntry).
Sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
Returns the value of this configuration, which may be None if the
configuration is sensitive.
Sourcepub fn source(&self) -> ConfigSource
pub fn source(&self) -> ConfigSource
Returns the source of this configuration.
Trait Implementations§
Source§impl Clone for ConfigSynonym
impl Clone for ConfigSynonym
Source§fn clone(&self) -> ConfigSynonym
fn clone(&self) -> ConfigSynonym
Returns a duplicate of the value. Read more
1.0.0 · 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 ConfigSynonym
impl Debug for ConfigSynonym
Source§impl Display for ConfigSynonym
impl Display for ConfigSynonym
Source§impl PartialEq for ConfigSynonym
impl PartialEq for ConfigSynonym
impl Eq for ConfigSynonym
impl StructuralPartialEq for ConfigSynonym
Auto Trait Implementations§
impl Freeze for ConfigSynonym
impl RefUnwindSafe for ConfigSynonym
impl Send for ConfigSynonym
impl Sync for ConfigSynonym
impl Unpin for ConfigSynonym
impl UnsafeUnpin for ConfigSynonym
impl UnwindSafe for ConfigSynonym
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more