pub struct AccountAccessDecoder<A>(/* private fields */);
Expand description
Decoder derived from AccountAccess
.
Implementations§
Source§impl<A> AccountAccessDecoder<A>
impl<A> AccountAccessDecoder<A>
Sourcepub fn new(account: A) -> Self
pub fn new(account: A) -> Self
Create a Decoder
from an AccountAccess
.
Trait Implementations§
Source§impl<A: Clone> Clone for AccountAccessDecoder<A>
impl<A: Clone> Clone for AccountAccessDecoder<A>
Source§fn clone(&self) -> AccountAccessDecoder<A>
fn clone(&self) -> AccountAccessDecoder<A>
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<A: Debug> Debug for AccountAccessDecoder<A>
impl<A: Debug> Debug for AccountAccessDecoder<A>
Source§impl<A: AccountAccess> Decoder for AccountAccessDecoder<A>
impl<A: AccountAccess> Decoder for AccountAccessDecoder<A>
Source§fn decode_account<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_account<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting an
AccountInfo
.Source§fn decode_transaction<V>(&self, _visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_transaction<V>(&self, _visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting a
Transaction
.Source§fn decode_anchor_cpi_events<V>(
&self,
_visitor: V,
) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_anchor_cpi_events<V>(
&self,
_visitor: V,
) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting
AnchorCPIEvent
list.Source§fn decode_owned_data<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_owned_data<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting a
OwnedData
. Read moreSource§fn decode_bytes<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
fn decode_bytes<V>(&self, visitor: V) -> Result<V::Value, DecodeError>where
V: Visitor,
Hint that the visitor is expecting a
Data
. Read moreAuto Trait Implementations§
impl<A> Freeze for AccountAccessDecoder<A>where
A: Freeze,
impl<A> RefUnwindSafe for AccountAccessDecoder<A>where
A: RefUnwindSafe,
impl<A> Send for AccountAccessDecoder<A>where
A: Send,
impl<A> Sync for AccountAccessDecoder<A>where
A: Sync,
impl<A> Unpin for AccountAccessDecoder<A>where
A: Unpin,
impl<A> UnwindSafe for AccountAccessDecoder<A>where
A: UnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more