pub struct SourceName(/* private fields */);Expand description
The name a target gives a source in [sources].
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SourceName
impl AsRef<str> for SourceName
Source§impl Clone for SourceName
impl Clone for SourceName
Source§impl Debug for SourceName
impl Debug for SourceName
Source§impl<'de> Deserialize<'de> for SourceName
impl<'de> Deserialize<'de> for SourceName
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 Display for SourceName
impl Display for SourceName
impl Eq for SourceName
Source§impl From<SourceName> for String
impl From<SourceName> for String
Source§fn from(value: SourceName) -> Self
fn from(value: SourceName) -> Self
Converts to this type from the input type.
Source§impl FromStr for SourceName
impl FromStr for SourceName
Source§impl Hash for SourceName
impl Hash for SourceName
Source§impl JsonSchema for SourceName
impl JsonSchema for SourceName
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SourceName
impl Ord for SourceName
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 SourceName
impl PartialEq for SourceName
Source§impl PartialEq<str> for SourceName
impl PartialEq<str> for SourceName
Source§impl PartialOrd for SourceName
impl PartialOrd for SourceName
Source§impl Serialize for SourceName
impl Serialize for SourceName
impl StructuralPartialEq for SourceName
Auto Trait Implementations§
impl Freeze for SourceName
impl RefUnwindSafe for SourceName
impl Send for SourceName
impl Sync for SourceName
impl Unpin for SourceName
impl UnsafeUnpin for SourceName
impl UnwindSafe for SourceName
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.