pub enum PrincipalData {
Standard(StandardPrincipalData),
Contract(StandardPrincipalData, ContractName),
}
Expand description
Principal Data type
Variants§
Standard(StandardPrincipalData)
Standard principal data type
Contract(StandardPrincipalData, ContractName)
Contract principal data type
Trait Implementations§
Source§impl Clone for PrincipalData
impl Clone for PrincipalData
Source§fn clone(&self) -> PrincipalData
fn clone(&self) -> PrincipalData
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 Codec for PrincipalData
impl Codec for PrincipalData
Source§fn codec_deserialize<R: Read>(data: &mut R) -> Result<Self>where
Self: Sized,
fn codec_deserialize<R: Read>(data: &mut R) -> Result<Self>where
Self: Sized,
Deserialize from a reader
Source§fn serialize<W: Write>(&self, dest: &mut W) -> StacksResult<()>
fn serialize<W: Write>(&self, dest: &mut W) -> StacksResult<()>
Serialize to a writer and return a StacksResult
Source§fn deserialize<R: Read>(data: &mut R) -> StacksResult<Self>where
Self: Sized,
fn deserialize<R: Read>(data: &mut R) -> StacksResult<Self>where
Self: Sized,
Deserialize from a reader and return a StacksResult
Source§impl Debug for PrincipalData
impl Debug for PrincipalData
Source§impl From<StacksAddress> for PrincipalData
impl From<StacksAddress> for PrincipalData
Source§fn from(address: StacksAddress) -> Self
fn from(address: StacksAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrincipalData
impl PartialEq for PrincipalData
impl Eq for PrincipalData
impl StructuralPartialEq for PrincipalData
Auto Trait Implementations§
impl Freeze for PrincipalData
impl RefUnwindSafe for PrincipalData
impl Send for PrincipalData
impl Sync for PrincipalData
impl Unpin for PrincipalData
impl UnwindSafe for PrincipalData
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