pub struct ProgramKey(/* private fields */);Expand description
A Solana program key: base58 decoding to exactly 32 bytes, private
inner string, constructible only through Self::new.
Implementations§
Source§impl ProgramKey
impl ProgramKey
Sourcepub fn new(program_key: &str) -> Result<Self, SignerError>
pub fn new(program_key: &str) -> Result<Self, SignerError>
Validates program_key by decoding it.
§Errors
SignerError::Invalid when it is not base58 decoding to
exactly 32 bytes.
Trait Implementations§
Source§impl Clone for ProgramKey
impl Clone for ProgramKey
Source§impl Debug for ProgramKey
impl Debug for ProgramKey
impl Eq for ProgramKey
Source§impl PartialEq for ProgramKey
impl PartialEq for ProgramKey
impl StructuralPartialEq for ProgramKey
Auto Trait Implementations§
impl Freeze for ProgramKey
impl RefUnwindSafe for ProgramKey
impl Send for ProgramKey
impl Sync for ProgramKey
impl Unpin for ProgramKey
impl UnsafeUnpin for ProgramKey
impl UnwindSafe for ProgramKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.