pub struct BatchRunId(/* private fields */);Expand description
Time-ordered batch run id (UUID v7) for multi-host JSON envelopes.
Implementations§
Source§impl BatchRunId
impl BatchRunId
Sourcepub fn try_new(raw: impl AsRef<str>) -> Result<Self, DomainError>
pub fn try_new(raw: impl AsRef<str>) -> Result<Self, DomainError>
Parses a hyphenated UUID string (must be v7).
Sourcepub fn to_string_canonical(&self) -> String
pub fn to_string_canonical(&self) -> String
Canonical hyphenated string.
Trait Implementations§
Source§impl Clone for BatchRunId
impl Clone for BatchRunId
Source§fn clone(&self) -> BatchRunId
fn clone(&self) -> BatchRunId
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 moreimpl Copy for BatchRunId
Source§impl Debug for BatchRunId
impl Debug for BatchRunId
Source§impl Default for BatchRunId
impl Default for BatchRunId
Source§impl<'de> Deserialize<'de> for BatchRunId
impl<'de> Deserialize<'de> for BatchRunId
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
Source§impl Display for BatchRunId
impl Display for BatchRunId
impl Eq for BatchRunId
Source§impl Hash for BatchRunId
impl Hash for BatchRunId
Source§impl Ord for BatchRunId
impl Ord for BatchRunId
Source§fn cmp(&self, other: &BatchRunId) -> Ordering
fn cmp(&self, other: &BatchRunId) -> 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
Source§impl PartialEq for BatchRunId
impl PartialEq for BatchRunId
Source§impl PartialOrd for BatchRunId
impl PartialOrd for BatchRunId
Source§impl Serialize for BatchRunId
impl Serialize for BatchRunId
impl StructuralPartialEq for BatchRunId
Auto Trait Implementations§
impl Freeze for BatchRunId
impl RefUnwindSafe for BatchRunId
impl Send for BatchRunId
impl Sync for BatchRunId
impl Unpin for BatchRunId
impl UnsafeUnpin for BatchRunId
impl UnwindSafe for BatchRunId
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§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