pub struct VocabularyId(/* private fields */);Expand description
A vocabulary identifier such as kute:industrial:events.
Rules (KVF 0.1): two to eight segments separated by :; each segment is
1 to 64 characters from a-z 0-9 . _ - and starts with a letter or digit;
the whole identifier is at most 255 bytes. Token ids only mean something
together with one of these and a version (FR-005).
Implementations§
Trait Implementations§
Source§impl Clone for VocabularyId
impl Clone for VocabularyId
Source§fn clone(&self) -> VocabularyId
fn clone(&self) -> VocabularyId
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 VocabularyId
impl Debug for VocabularyId
Source§impl<'de> Deserialize<'de> for VocabularyId
impl<'de> Deserialize<'de> for VocabularyId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VocabularyId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VocabularyId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VocabularyId
impl Display for VocabularyId
impl Eq for VocabularyId
Source§impl FromStr for VocabularyId
impl FromStr for VocabularyId
Source§impl Hash for VocabularyId
impl Hash for VocabularyId
Source§impl Ord for VocabularyId
impl Ord for VocabularyId
Source§fn cmp(&self, other: &VocabularyId) -> Ordering
fn cmp(&self, other: &VocabularyId) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VocabularyId
impl PartialEq for VocabularyId
Source§impl PartialOrd for VocabularyId
impl PartialOrd for VocabularyId
Source§impl Serialize for VocabularyId
impl Serialize for VocabularyId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VocabularyId
Auto Trait Implementations§
impl Forget for VocabularyId
impl Freeze for VocabularyId
impl Move for VocabularyId
impl RefUnwindSafe for VocabularyId
impl Send for VocabularyId
impl Sync for VocabularyId
impl Unpin for VocabularyId
impl UnsafeUnpin for VocabularyId
impl UnwindSafe for VocabularyId
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more