pub enum AccountEncoding {
Binary,
Base58,
Base64,
Base64Zstd,
JsonParsed,
}Expand description
Represents an encoding format for Solana account data.
Variants§
Binary
The account data is formatted as a binary string.
Base58
The account data is formatted as a base-58 string.
Base64
The account data is formatted as a base-64 string.
Base64Zstd
The account data was first compressed using Zstandard and the result was then formatted as a base-64 string.
JsonParsed
The account data is formatted as a JSON string.
Trait Implementations§
Source§impl CandidType for AccountEncoding
impl CandidType for AccountEncoding
Source§impl Clone for AccountEncoding
impl Clone for AccountEncoding
Source§fn clone(&self) -> AccountEncoding
fn clone(&self) -> AccountEncoding
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 AccountEncoding
impl Debug for AccountEncoding
Source§impl<'de> Deserialize<'de> for AccountEncoding
impl<'de> Deserialize<'de> for AccountEncoding
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 From<AccountEncoding> for UiAccountEncoding
impl From<AccountEncoding> for UiAccountEncoding
Source§fn from(encoding: AccountEncoding) -> Self
fn from(encoding: AccountEncoding) -> Self
Converts to this type from the input type.
Source§impl From<UiAccountEncoding> for AccountEncoding
impl From<UiAccountEncoding> for AccountEncoding
Source§fn from(encoding: UiAccountEncoding) -> Self
fn from(encoding: UiAccountEncoding) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AccountEncoding
impl PartialEq for AccountEncoding
Source§impl Serialize for AccountEncoding
impl Serialize for AccountEncoding
impl StructuralPartialEq for AccountEncoding
Auto Trait Implementations§
impl Freeze for AccountEncoding
impl RefUnwindSafe for AccountEncoding
impl Send for AccountEncoding
impl Sync for AccountEncoding
impl Unpin for AccountEncoding
impl UnwindSafe for AccountEncoding
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