Struct reputation_module::storable::CanisterPermission
source · pub struct CanisterPermission(pub bool);
Expand description
Represents the permission status of a canister.
Tuple Fields§
§0: bool
Trait Implementations§
source§impl CandidType for CanisterPermission
impl CandidType for CanisterPermission
source§impl Clone for CanisterPermission
impl Clone for CanisterPermission
source§fn clone(&self) -> CanisterPermission
fn clone(&self) -> CanisterPermission
Returns a copy 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<'de> Deserialize<'de> for CanisterPermission
impl<'de> Deserialize<'de> for CanisterPermission
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 Storable for CanisterPermission
impl Storable for CanisterPermission
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.Auto Trait Implementations§
impl RefUnwindSafe for CanisterPermission
impl Send for CanisterPermission
impl Sync for CanisterPermission
impl Unpin for CanisterPermission
impl UnwindSafe for CanisterPermission
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