pub enum SubnetKind {
Application,
CloudEngine,
System,
Unknown,
}Expand description
SubnetKind
Subnet execution kind from registry or derived catalog classification.
Variants§
Application
Application subnet.
CloudEngine
Cloud Engine subnet.
System
System subnet.
Unknown
Unknown or unclassified subnet kind.
Implementations§
Source§impl SubnetKind
impl SubnetKind
Sourcepub const fn from_registry_subnet_type(raw_subnet_type: i32) -> Self
pub const fn from_registry_subnet_type(raw_subnet_type: i32) -> Self
Convert one raw Registry SubnetType numeric discriminant.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Returns the stable snake_case value used in CLI filters and text output.
Sourcepub const fn charges_apply_by_default(self) -> bool
pub const fn charges_apply_by_default(self) -> bool
Returns whether a subject on this subnet kind normally incurs application charges.
Trait Implementations§
Source§impl Clone for SubnetKind
impl Clone for SubnetKind
Source§fn clone(&self) -> SubnetKind
fn clone(&self) -> SubnetKind
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 moreimpl Copy for SubnetKind
Source§impl Debug for SubnetKind
impl Debug for SubnetKind
Source§impl<'de> Deserialize<'de> for SubnetKind
impl<'de> Deserialize<'de> for SubnetKind
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 SubnetKind
Source§impl FromStr for SubnetKind
impl FromStr for SubnetKind
Source§impl PartialEq for SubnetKind
impl PartialEq for SubnetKind
Source§impl Serialize for SubnetKind
impl Serialize for SubnetKind
impl StructuralPartialEq for SubnetKind
Auto Trait Implementations§
impl Freeze for SubnetKind
impl RefUnwindSafe for SubnetKind
impl Send for SubnetKind
impl Sync for SubnetKind
impl Unpin for SubnetKind
impl UnsafeUnpin for SubnetKind
impl UnwindSafe for SubnetKind
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