pub struct StableNodeId<'a>(pub &'a str);Expand description
A string representation of a Tailscale node’s NodeId.
Different control plane servers should ideally have different StableNodeId suffixes for
different sites or regions.
Being a string, it’s safer to use in JavaScript without worrying about the size of the integer,
as documented on NodeId. But in general, Tailscale APIs can accept either a NodeId
integer or a StableNodeId string when referring to a node.
Tuple Fields§
§0: &'a strTrait Implementations§
Source§impl<'a> Clone for StableNodeId<'a>
impl<'a> Clone for StableNodeId<'a>
Source§fn clone(&self) -> StableNodeId<'a>
fn clone(&self) -> StableNodeId<'a>
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<'a> Debug for StableNodeId<'a>
impl<'a> Debug for StableNodeId<'a>
Source§impl<'a> Default for StableNodeId<'a>
impl<'a> Default for StableNodeId<'a>
Source§fn default() -> StableNodeId<'a>
fn default() -> StableNodeId<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for StableNodeId<'a>
impl<'de: 'a, 'a> Deserialize<'de> for StableNodeId<'a>
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<'a> Eq for StableNodeId<'a>
Source§impl<'a> PartialEq for StableNodeId<'a>
impl<'a> PartialEq for StableNodeId<'a>
Source§impl<'a> Serialize for StableNodeId<'a>
impl<'a> Serialize for StableNodeId<'a>
impl<'a> StructuralPartialEq for StableNodeId<'a>
Auto Trait Implementations§
impl<'a> Freeze for StableNodeId<'a>
impl<'a> RefUnwindSafe for StableNodeId<'a>
impl<'a> Send for StableNodeId<'a>
impl<'a> Sync for StableNodeId<'a>
impl<'a> Unpin for StableNodeId<'a>
impl<'a> UnsafeUnpin for StableNodeId<'a>
impl<'a> UnwindSafe for StableNodeId<'a>
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