pub struct DocDataPrincipal {
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
: ThePrincipal
this struct wraps.
Fields§
§value: Principal
Trait Implementations§
Source§impl Clone for DocDataPrincipal
impl Clone for DocDataPrincipal
Source§fn clone(&self) -> DocDataPrincipal
fn clone(&self) -> DocDataPrincipal
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 DocDataPrincipal
impl Debug for DocDataPrincipal
Source§impl<'de> Deserialize<'de> for DocDataPrincipal
impl<'de> Deserialize<'de> for DocDataPrincipal
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 DocDataPrincipal
impl Hash for DocDataPrincipal
Source§impl Ord for DocDataPrincipal
impl Ord for DocDataPrincipal
Source§fn cmp(&self, other: &DocDataPrincipal) -> Ordering
fn cmp(&self, other: &DocDataPrincipal) -> 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 DocDataPrincipal
impl PartialEq for DocDataPrincipal
Source§impl PartialOrd for DocDataPrincipal
impl PartialOrd for DocDataPrincipal
Source§impl Serialize for DocDataPrincipal
impl Serialize for DocDataPrincipal
impl Copy for DocDataPrincipal
impl Eq for DocDataPrincipal
impl StructuralPartialEq for DocDataPrincipal
Auto Trait Implementations§
impl Freeze for DocDataPrincipal
impl RefUnwindSafe for DocDataPrincipal
impl Send for DocDataPrincipal
impl Sync for DocDataPrincipal
impl Unpin for DocDataPrincipal
impl UnwindSafe for DocDataPrincipal
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