pub struct NamespaceSegment {
pub node_name: String,
pub invocation_id: String,
}Expand description
Single namespace segment with node name and invocation UUID
Represents one level in a hierarchical checkpoint namespace, combining a node name with a unique invocation identifier.
§Examples
ⓘ
use juncture_core::checkpoint::NamespaceSegment;
let segment = NamespaceSegment::new("review".to_string(), "uuid-1234".to_string());
assert_eq!(segment.as_str(), "review:uuid-1234");Fields§
§node_name: StringNode name for this segment
invocation_id: StringUnique invocation identifier (UUID v4)
Implementations§
Trait Implementations§
Source§impl Clone for NamespaceSegment
impl Clone for NamespaceSegment
Source§fn clone(&self) -> NamespaceSegment
fn clone(&self) -> NamespaceSegment
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 NamespaceSegment
impl Debug for NamespaceSegment
Source§impl Display for NamespaceSegment
impl Display for NamespaceSegment
impl Eq for NamespaceSegment
Source§impl Hash for NamespaceSegment
impl Hash for NamespaceSegment
Source§impl PartialEq for NamespaceSegment
impl PartialEq for NamespaceSegment
Source§fn eq(&self, other: &NamespaceSegment) -> bool
fn eq(&self, other: &NamespaceSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamespaceSegment
Auto Trait Implementations§
impl Freeze for NamespaceSegment
impl RefUnwindSafe for NamespaceSegment
impl Send for NamespaceSegment
impl Sync for NamespaceSegment
impl Unpin for NamespaceSegment
impl UnsafeUnpin for NamespaceSegment
impl UnwindSafe for NamespaceSegment
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.