pub struct StandardPrincipalData(pub AddressVersion, pub StacksAddress);
Expand description
Standard principal data type
Tuple Fields§
§0: AddressVersion
§1: StacksAddress
Implementations§
Source§impl StandardPrincipalData
impl StandardPrincipalData
Sourcepub fn new(version: AddressVersion, address: StacksAddress) -> Self
pub fn new(version: AddressVersion, address: StacksAddress) -> Self
Create a new standard principal data type from the provided address version and stacks address
Trait Implementations§
Source§impl Clone for StandardPrincipalData
impl Clone for StandardPrincipalData
Source§fn clone(&self) -> StandardPrincipalData
fn clone(&self) -> StandardPrincipalData
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 StandardPrincipalData
impl Codec for StandardPrincipalData
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 StandardPrincipalData
impl Debug for StandardPrincipalData
Source§impl From<StacksAddress> for StandardPrincipalData
impl From<StacksAddress> for StandardPrincipalData
Source§fn from(address: StacksAddress) -> Self
fn from(address: StacksAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StandardPrincipalData
impl PartialEq for StandardPrincipalData
impl Eq for StandardPrincipalData
impl StructuralPartialEq for StandardPrincipalData
Auto Trait Implementations§
impl Freeze for StandardPrincipalData
impl RefUnwindSafe for StandardPrincipalData
impl Send for StandardPrincipalData
impl Sync for StandardPrincipalData
impl Unpin for StandardPrincipalData
impl UnwindSafe for StandardPrincipalData
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