pub struct NodeID {
pub namespace: String,
pub local_id: String,
}Fields§
§namespace: StringEach node is namespaced according to its Cluster.
local_id: StringAn ID should be locally unique inside a Cluster and is used to refer to a node inside its Cluster.
The ID also be used to refer to the node from outside its Cluster, if it is preceded by the Cluster’s namespace prefix.
Implementations§
Source§impl NodeID
impl NodeID
pub fn from_two_part_string(string: &str) -> Result<NodeID, StructuralError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeID
impl<'de> Deserialize<'de> for NodeID
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
impl Eq for NodeID
impl StructuralPartialEq for NodeID
Auto Trait Implementations§
impl Freeze for NodeID
impl RefUnwindSafe for NodeID
impl Send for NodeID
impl Sync for NodeID
impl Unpin for NodeID
impl UnsafeUnpin for NodeID
impl UnwindSafe for NodeID
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.