pub struct AccountContext {
pub in_output_queue: bool,
pub nullified_in_tree: bool,
pub nullifier: Option<String>,
pub nullifier_queue_index: Option<u16>,
pub queue: String,
pub spent: bool,
pub tree_type: u16,
pub tx_hash: Option<String>,
}
Expand description
AccountContext: This is currently used internally: - Internal (state_updates,..) - GetTransactionWithCompressionInfo (internally) - GetTransactionWithCompressionInfoV2 (internally) All endpoints return AccountV2.
Fields§
§in_output_queue: bool
§nullified_in_tree: bool
§nullifier: Option<String>
A 32-byte hash represented as a base58 string.
nullifier_queue_index: Option<u16>
§queue: String
A Solana public key represented as a base58 string.
spent: bool
§tree_type: u16
§tx_hash: Option<String>
A 32-byte hash represented as a base58 string.
Implementations§
Source§impl AccountContext
impl AccountContext
Sourcepub fn new(
in_output_queue: bool,
nullified_in_tree: bool,
queue: String,
spent: bool,
tree_type: u16,
) -> AccountContext
pub fn new( in_output_queue: bool, nullified_in_tree: bool, queue: String, spent: bool, tree_type: u16, ) -> AccountContext
This is currently used internally: - Internal (state_updates,..) - GetTransactionWithCompressionInfo (internally) - GetTransactionWithCompressionInfoV2 (internally) All endpoints return AccountV2.
Trait Implementations§
Source§impl Clone for AccountContext
impl Clone for AccountContext
Source§fn clone(&self) -> AccountContext
fn clone(&self) -> AccountContext
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 AccountContext
impl Debug for AccountContext
Source§impl Default for AccountContext
impl Default for AccountContext
Source§fn default() -> AccountContext
fn default() -> AccountContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountContext
impl<'de> Deserialize<'de> for AccountContext
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 AccountContext
impl PartialEq for AccountContext
Source§impl Serialize for AccountContext
impl Serialize for AccountContext
impl StructuralPartialEq for AccountContext
Auto Trait Implementations§
impl Freeze for AccountContext
impl RefUnwindSafe for AccountContext
impl Send for AccountContext
impl Sync for AccountContext
impl Unpin for AccountContext
impl UnwindSafe for AccountContext
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