pub struct AccountContext {
pub in_output_queue: bool,
pub nullified_in_tree: bool,
pub nullifier: Option<Hash>,
pub nullifier_queue_index: Option<UnsignedInteger>,
pub queue: SerializablePubkey,
pub spent: bool,
pub tree_type: u16,
pub tx_hash: Option<Hash>,
}Expand description
This is currently used internally:
- Internal (state_updates,..)
- GetTransactionWithCompressionInfo (internally)
- GetTransactionWithCompressionInfoV2 (internally) All endpoints return AccountV2.
JSON schema
{
"description": "This is currently used internally:\n- Internal (state_updates,..)\n- GetTransactionWithCompressionInfo (internally)\n- GetTransactionWithCompressionInfoV2 (internally)\nAll endpoints return AccountV2.",
"type": "object",
"required": [
"inOutputQueue",
"nullifiedInTree",
"queue",
"spent",
"treeType"
],
"properties": {
"inOutputQueue": {
"type": "boolean"
},
"nullifiedInTree": {
"type": "boolean"
},
"nullifier": {
"$ref": "#/components/schemas/Hash"
},
"nullifierQueueIndex": {
"$ref": "#/components/schemas/UnsignedInteger"
},
"queue": {
"$ref": "#/components/schemas/SerializablePubkey"
},
"spent": {
"type": "boolean"
},
"treeType": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"txHash": {
"$ref": "#/components/schemas/Hash"
}
},
"additionalProperties": false
}Fields§
§in_output_queue: bool§nullified_in_tree: bool§nullifier: Option<Hash>§nullifier_queue_index: Option<UnsignedInteger>§queue: SerializablePubkey§spent: bool§tree_type: u16§tx_hash: Option<Hash>Implementations§
Source§impl AccountContext
impl AccountContext
pub fn builder() -> AccountContext
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<'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 From<AccountContext> for AccountContext
impl From<AccountContext> for AccountContext
Source§fn from(value: AccountContext) -> Self
fn from(value: AccountContext) -> Self
Converts to this type from the input type.
Source§impl Serialize for AccountContext
impl Serialize for AccountContext
Source§impl TryFrom<AccountContext> for AccountContext
impl TryFrom<AccountContext> for AccountContext
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AccountContext) -> Result<Self, ConversionError>
fn try_from(value: AccountContext) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AccountContext
impl RefUnwindSafe for AccountContext
impl Send for AccountContext
impl Sync for AccountContext
impl Unpin for AccountContext
impl UnsafeUnpin 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