pub struct PublicKey { /* private fields */ }
Expand description
The public key of the account.
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_account_id(account_id: &str) -> Result<PublicKey>
pub fn from_account_id(account_id: &str) -> Result<PublicKey>
Create from account_id
, e.g. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA
.
Sourcepub fn from_slice(data: &[u8]) -> Result<PublicKey>
pub fn from_slice(data: &[u8]) -> Result<PublicKey>
Create from raw bytes.
Sourcepub fn account_id(&self) -> Result<String>
pub fn account_id(&self) -> Result<String>
Return the public key as string, starting with G
.
Trait Implementations§
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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