pub struct StringSpec(/* private fields */);Expand description
Shorthand id string like owner/name@^1.0 or acme/skill.
Validated at deserialization: no whitespace, non-empty.
Implementations§
Trait Implementations§
Source§impl Clone for StringSpec
impl Clone for StringSpec
Source§fn clone(&self) -> StringSpec
fn clone(&self) -> StringSpec
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 StringSpec
impl Debug for StringSpec
Source§impl<'de> Deserialize<'de> for StringSpec
impl<'de> Deserialize<'de> for StringSpec
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 StringSpec
impl PartialEq for StringSpec
Source§fn eq(&self, other: &StringSpec) -> bool
fn eq(&self, other: &StringSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StringSpec
impl Serialize for StringSpec
impl Eq for StringSpec
impl StructuralPartialEq for StringSpec
Auto Trait Implementations§
impl Freeze for StringSpec
impl RefUnwindSafe for StringSpec
impl Send for StringSpec
impl Sync for StringSpec
impl Unpin for StringSpec
impl UnsafeUnpin for StringSpec
impl UnwindSafe for StringSpec
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> 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.