#[non_exhaustive]pub struct AltNameEntry {
pub name: String,
pub state: Option<AltNameState>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§state: Option<AltNameState>Set to state: absent will delete specified alternative name.
Implementations§
Trait Implementations§
Source§impl Clone for AltNameEntry
impl Clone for AltNameEntry
Source§fn clone(&self) -> AltNameEntry
fn clone(&self) -> AltNameEntry
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 AltNameEntry
impl Debug for AltNameEntry
Source§impl Default for AltNameEntry
impl Default for AltNameEntry
Source§fn default() -> AltNameEntry
fn default() -> AltNameEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AltNameEntry
impl<'de> Deserialize<'de> for AltNameEntry
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 Hash for AltNameEntry
impl Hash for AltNameEntry
Source§impl Ord for AltNameEntry
impl Ord for AltNameEntry
Source§fn cmp(&self, other: &AltNameEntry) -> Ordering
fn cmp(&self, other: &AltNameEntry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AltNameEntry
impl PartialEq for AltNameEntry
Source§impl PartialOrd for AltNameEntry
impl PartialOrd for AltNameEntry
Source§impl Serialize for AltNameEntry
impl Serialize for AltNameEntry
impl Eq for AltNameEntry
impl StructuralPartialEq for AltNameEntry
Auto Trait Implementations§
impl Freeze for AltNameEntry
impl RefUnwindSafe for AltNameEntry
impl Send for AltNameEntry
impl Sync for AltNameEntry
impl Unpin for AltNameEntry
impl UnwindSafe for AltNameEntry
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.