pub enum CreateCanisterParent {
Root,
ThisCanister,
Parent,
Canister(Principal),
Directory(CanisterRole),
}Expand description
CreateCanisterParent Parent-location choices for a new canister
Variants§
Root
ThisCanister
Use the requesting canister as parent.
Parent
Use the requesting canister’s parent (creates a sibling).
Canister(Principal)
Directory(CanisterRole)
Trait Implementations§
Source§impl CandidType for CreateCanisterParent
impl CandidType for CreateCanisterParent
Source§impl Clone for CreateCanisterParent
impl Clone for CreateCanisterParent
Source§fn clone(&self) -> CreateCanisterParent
fn clone(&self) -> CreateCanisterParent
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 CreateCanisterParent
impl Debug for CreateCanisterParent
Source§impl<'de> Deserialize<'de> for CreateCanisterParent
impl<'de> Deserialize<'de> for CreateCanisterParent
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
Auto Trait Implementations§
impl Freeze for CreateCanisterParent
impl RefUnwindSafe for CreateCanisterParent
impl Send for CreateCanisterParent
impl Sync for CreateCanisterParent
impl Unpin for CreateCanisterParent
impl UnwindSafe for CreateCanisterParent
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