pub struct InstallationId(/* private fields */);Expand description
The identifier of an installation: one member’s use of one application, with its own key. It is a single lower-case segment, so it fits the tenant route grammar and the report’s resource name.
§Examples
use stratum_node_core::InstallationId;
let id = InstallationId::from_bytes([1; 16]);
assert_eq!(id.to_hex(), "01".repeat(16));Implementations§
Trait Implementations§
Source§impl Clone for InstallationId
impl Clone for InstallationId
impl Copy for InstallationId
Source§impl Debug for InstallationId
impl Debug for InstallationId
Source§impl<'de> Deserialize<'de> for InstallationId
impl<'de> Deserialize<'de> for InstallationId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InstallationId
impl Display for InstallationId
impl Eq for InstallationId
Source§impl FromStr for InstallationId
impl FromStr for InstallationId
Source§impl Hash for InstallationId
impl Hash for InstallationId
Source§impl Ord for InstallationId
impl Ord for InstallationId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InstallationId
impl PartialEq for InstallationId
Source§impl PartialOrd for InstallationId
impl PartialOrd for InstallationId
Source§impl Serialize for InstallationId
impl Serialize for InstallationId
impl StructuralPartialEq for InstallationId
Auto Trait Implementations§
impl Forget for InstallationId
impl Freeze for InstallationId
impl Move for InstallationId
impl RefUnwindSafe for InstallationId
impl Send for InstallationId
impl Sync for InstallationId
impl Unpin for InstallationId
impl UnsafeUnpin for InstallationId
impl UnwindSafe for InstallationId
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