pub enum GetAccountInfoEncoding {
Base58,
Base64,
Base64ZStd,
JsonParsed,
}Expand description
Encoding for the return value of the Solana getAccountInfo RPC method.
Variants§
Base58
The account data is base-58 encoded. Limited to less than 129 bytes of data.
Base64
The account data is base-64 encoded.
Base64ZStd
Account data is first compressed using Zstandard and the result is then base-64 encoded.
JsonParsed
The encoding attempts to use program-specific state parsers to return more human-readable
and explicit account state data. If GetAccountInfoEncoding::JsonParsed is requested but
a parser cannot be found, the fallback is GetAccountInfoEncoding::Base64 encoding.
Trait Implementations§
Source§impl CandidType for GetAccountInfoEncoding
impl CandidType for GetAccountInfoEncoding
Source§impl Clone for GetAccountInfoEncoding
impl Clone for GetAccountInfoEncoding
Source§fn clone(&self) -> GetAccountInfoEncoding
fn clone(&self) -> GetAccountInfoEncoding
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 GetAccountInfoEncoding
impl Debug for GetAccountInfoEncoding
Source§impl<'de> Deserialize<'de> for GetAccountInfoEncoding
impl<'de> Deserialize<'de> for GetAccountInfoEncoding
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 GetAccountInfoEncoding
impl PartialEq for GetAccountInfoEncoding
Source§impl Serialize for GetAccountInfoEncoding
impl Serialize for GetAccountInfoEncoding
impl StructuralPartialEq for GetAccountInfoEncoding
Auto Trait Implementations§
impl Freeze for GetAccountInfoEncoding
impl RefUnwindSafe for GetAccountInfoEncoding
impl Send for GetAccountInfoEncoding
impl Sync for GetAccountInfoEncoding
impl Unpin for GetAccountInfoEncoding
impl UnwindSafe for GetAccountInfoEncoding
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<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