pub struct JsonDataPrincipal {
pub value: Principal,
}Expand description
Represents a wrapper around the candid::Principal type.
This struct is designed to encapsulate a Candid Principal, allowing for integration and usage within Juno hooks contexts.
§Fields
value: ThePrincipalthis struct wraps.
Fields§
§value: PrincipalTrait Implementations§
Source§impl Clone for JsonDataPrincipal
impl Clone for JsonDataPrincipal
Source§fn clone(&self) -> JsonDataPrincipal
fn clone(&self) -> JsonDataPrincipal
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 JsonDataPrincipal
impl Debug for JsonDataPrincipal
Source§impl<'de> Deserialize<'de> for JsonDataPrincipal
impl<'de> Deserialize<'de> for JsonDataPrincipal
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 Hash for JsonDataPrincipal
impl Hash for JsonDataPrincipal
Source§impl Ord for JsonDataPrincipal
impl Ord for JsonDataPrincipal
Source§fn cmp(&self, other: &JsonDataPrincipal) -> Ordering
fn cmp(&self, other: &JsonDataPrincipal) -> Ordering
1.21.0 · 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 PartialEq for JsonDataPrincipal
impl PartialEq for JsonDataPrincipal
Source§impl PartialOrd for JsonDataPrincipal
impl PartialOrd for JsonDataPrincipal
Source§impl Serialize for JsonDataPrincipal
impl Serialize for JsonDataPrincipal
impl Copy for JsonDataPrincipal
impl Eq for JsonDataPrincipal
impl StructuralPartialEq for JsonDataPrincipal
Auto Trait Implementations§
impl Freeze for JsonDataPrincipal
impl RefUnwindSafe for JsonDataPrincipal
impl Send for JsonDataPrincipal
impl Sync for JsonDataPrincipal
impl Unpin for JsonDataPrincipal
impl UnsafeUnpin for JsonDataPrincipal
impl UnwindSafe for JsonDataPrincipal
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