pub struct SourceName(pub String);Expand description
Strong type for source names to prevent mixing up with other strings
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for SourceName
impl Clone for SourceName
Source§fn clone(&self) -> SourceName
fn clone(&self) -> SourceName
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 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
Source§impl From<SourceName> for String
impl From<SourceName> for String
Source§fn from(original: SourceName) -> Self
fn from(original: SourceName) -> Self
Converts to this type from the input type.
Source§impl From<String> for SourceName
impl From<String> for SourceName
Source§fn from(original: String) -> SourceName
fn from(original: String) -> SourceName
Converts to this type from the input type.
Source§impl Hash for SourceName
impl Hash for SourceName
Source§impl PartialEq for SourceName
impl PartialEq for SourceName
Source§impl Serialize for SourceName
impl Serialize for SourceName
impl Eq 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 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> 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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP