pub struct SignedOnchainBytes {
pub inner: Vec<u8>,
pub owner_pubkey: [u8; 32],
}Expand description
Representation of OnchainBytes as exists on the Solana blockchain
Fields§
§inner: Vec<u8>§owner_pubkey: [u8; 32]Trait Implementations§
Source§impl BorshDeserialize for SignedOnchainBytes
impl BorshDeserialize for SignedOnchainBytes
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for SignedOnchainBytes
impl BorshSerialize for SignedOnchainBytes
Source§impl Clone for SignedOnchainBytes
impl Clone for SignedOnchainBytes
Source§fn clone(&self) -> SignedOnchainBytes
fn clone(&self) -> SignedOnchainBytes
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 SignedOnchainBytes
impl Debug for SignedOnchainBytes
Source§impl<'de> Deserialize<'de> for SignedOnchainBytes
impl<'de> Deserialize<'de> for SignedOnchainBytes
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 PartialEq for SignedOnchainBytes
impl PartialEq for SignedOnchainBytes
Source§impl Serialize for SignedOnchainBytes
impl Serialize for SignedOnchainBytes
impl Eq for SignedOnchainBytes
impl StructuralPartialEq for SignedOnchainBytes
Auto Trait Implementations§
impl Freeze for SignedOnchainBytes
impl RefUnwindSafe for SignedOnchainBytes
impl Send for SignedOnchainBytes
impl Sync for SignedOnchainBytes
impl Unpin for SignedOnchainBytes
impl UnwindSafe for SignedOnchainBytes
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