pub struct KeyPath(/* private fields */);Expand description
Non-empty private key path.
Implementations§
Source§impl KeyPath
impl KeyPath
Sourcepub fn try_new(raw: impl AsRef<Path>) -> Result<Self, DomainError>
pub fn try_new(raw: impl AsRef<Path>) -> Result<Self, DomainError>
Parses a non-empty key path.
Sourcepub fn try_from_optional(
raw: Option<impl AsRef<str>>,
) -> Result<Option<Self>, DomainError>
pub fn try_from_optional( raw: Option<impl AsRef<str>>, ) -> Result<Option<Self>, DomainError>
From optional string (None / empty → None).
Sourcepub fn to_string_lossy_owned(&self) -> String
pub fn to_string_lossy_owned(&self) -> String
Wire string (lossy if non-UTF8).
Sourcepub fn into_path_buf(self) -> PathBuf
pub fn into_path_buf(self) -> PathBuf
Consumes into PathBuf.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyPath
impl<'de> Deserialize<'de> for KeyPath
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeyPath
impl StructuralPartialEq for KeyPath
Auto Trait Implementations§
impl Freeze for KeyPath
impl RefUnwindSafe for KeyPath
impl Send for KeyPath
impl Sync for KeyPath
impl Unpin for KeyPath
impl UnsafeUnpin for KeyPath
impl UnwindSafe for KeyPath
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<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§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