Struct scsys_core::Appellation
source · pub struct Appellation<T = String> {
pub id: T,
pub key: T,
pub label: T,
}
Fields§
§id: T
§key: T
§label: T
Implementations§
source§impl<T> Appellation<T>
impl<T> Appellation<T>
Trait Implementations§
source§impl<T: Clone> Clone for Appellation<T>
impl<T: Clone> Clone for Appellation<T>
source§fn clone(&self) -> Appellation<T>
fn clone(&self) -> Appellation<T>
Returns a copy 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<T: Serialize> Debug for Appellation<T>
impl<T: Serialize> Debug for Appellation<T>
source§impl<T: Default> Default for Appellation<T>
impl<T: Default> Default for Appellation<T>
source§fn default() -> Appellation<T>
fn default() -> Appellation<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for Appellation<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Appellation<T>where
T: Deserialize<'de>,
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<T: Serialize> Display for Appellation<T>
impl<T: Serialize> Display for Appellation<T>
source§impl<T: Hash> Hash for Appellation<T>
impl<T: Hash> Hash for Appellation<T>
source§impl<T: PartialEq> PartialEq<Appellation<T>> for Appellation<T>
impl<T: PartialEq> PartialEq<Appellation<T>> for Appellation<T>
source§fn eq(&self, other: &Appellation<T>) -> bool
fn eq(&self, other: &Appellation<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for Appellation<T>where
T: Serialize,
impl<T> Serialize for Appellation<T>where
T: Serialize,
impl<T: Eq> Eq for Appellation<T>
impl<T> StructuralEq for Appellation<T>
impl<T> StructuralPartialEq for Appellation<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Appellation<T>where
T: RefUnwindSafe,
impl<T> Send for Appellation<T>where
T: Send,
impl<T> Sync for Appellation<T>where
T: Sync,
impl<T> Unpin for Appellation<T>where
T: Unpin,
impl<T> UnwindSafe for Appellation<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.