pub struct SubnetConfig {
pub canisters: BTreeMap<CanisterRole, CanisterConfig>,
pub auto_create: BTreeSet<CanisterRole>,
pub subnet_directory: BTreeSet<CanisterRole>,
pub pool: CanisterPool,
}Expand description
SubnetConfig
Fields§
§canisters: BTreeMap<CanisterRole, CanisterConfig>§auto_create: BTreeSet<CanisterRole>§subnet_directory: BTreeSet<CanisterRole>§pool: CanisterPoolImplementations§
Source§impl SubnetConfig
impl SubnetConfig
Sourcepub fn directory_canisters(&self) -> Vec<CanisterRole>
pub fn directory_canisters(&self) -> Vec<CanisterRole>
Returns the directory canisters for this subnet.
Sourcepub fn get_canister(&self, role: &CanisterRole) -> Option<CanisterConfig>
pub fn get_canister(&self, role: &CanisterRole) -> Option<CanisterConfig>
Get a canister configuration by role.
Trait Implementations§
Source§impl Clone for SubnetConfig
impl Clone for SubnetConfig
Source§fn clone(&self) -> SubnetConfig
fn clone(&self) -> SubnetConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubnetConfig
impl Debug for SubnetConfig
Source§impl Default for SubnetConfig
impl Default for SubnetConfig
Source§fn default() -> SubnetConfig
fn default() -> SubnetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubnetConfig
impl<'de> Deserialize<'de> for SubnetConfig
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
Source§impl Serialize for SubnetConfig
impl Serialize for SubnetConfig
Source§impl Validate for SubnetConfig
impl Validate for SubnetConfig
Auto Trait Implementations§
impl Freeze for SubnetConfig
impl RefUnwindSafe for SubnetConfig
impl Send for SubnetConfig
impl Sync for SubnetConfig
impl Unpin for SubnetConfig
impl UnwindSafe for SubnetConfig
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