pub struct SubnetId(/* private fields */);Expand description
SubnetId
Strongly typed physical IC Subnet principal used by protected Fleet bindings.
Implementations§
Source§impl SubnetId
impl SubnetId
pub const fn from_principal(principal: Principal) -> Self
pub const fn as_principal(&self) -> &Principal
pub const fn into_principal(self) -> Principal
Trait Implementations§
Source§impl CandidType for SubnetId
impl CandidType for SubnetId
impl Copy for SubnetId
Source§impl<'de> Deserialize<'de> for SubnetId
impl<'de> Deserialize<'de> for SubnetId
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 SubnetId
Source§impl Ord for SubnetId
impl Ord for SubnetId
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 PartialOrd for SubnetId
impl PartialOrd for SubnetId
impl StructuralPartialEq for SubnetId
Auto Trait Implementations§
impl Freeze for SubnetId
impl RefUnwindSafe for SubnetId
impl Send for SubnetId
impl Sync for SubnetId
impl Unpin for SubnetId
impl UnsafeUnpin for SubnetId
impl UnwindSafe for SubnetId
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