pub struct MerkleContextV2 {
pub cpi_context: Option<SerializablePubkey>,
pub next_tree_context: Option<TreeContextInfo>,
pub queue: SerializablePubkey,
pub tree: SerializablePubkey,
pub tree_type: u16,
}Expand description
MerkleContextV2
JSON schema
{
"type": "object",
"required": [
"queue",
"tree",
"treeType"
],
"properties": {
"cpiContext": {
"$ref": "#/components/schemas/SerializablePubkey"
},
"nextTreeContext": {
"$ref": "#/components/schemas/TreeContextInfo"
},
"queue": {
"$ref": "#/components/schemas/SerializablePubkey"
},
"tree": {
"$ref": "#/components/schemas/SerializablePubkey"
},
"treeType": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
}
}
}Fields§
§cpi_context: Option<SerializablePubkey>§next_tree_context: Option<TreeContextInfo>§queue: SerializablePubkey§tree: SerializablePubkey§tree_type: u16Implementations§
Source§impl MerkleContextV2
impl MerkleContextV2
pub fn builder() -> MerkleContextV2
Trait Implementations§
Source§impl Clone for MerkleContextV2
impl Clone for MerkleContextV2
Source§fn clone(&self) -> MerkleContextV2
fn clone(&self) -> MerkleContextV2
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 MerkleContextV2
impl Debug for MerkleContextV2
Source§impl<'de> Deserialize<'de> for MerkleContextV2
impl<'de> Deserialize<'de> for MerkleContextV2
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<MerkleContextV2> for MerkleContextV2
impl From<MerkleContextV2> for MerkleContextV2
Source§fn from(value: MerkleContextV2) -> Self
fn from(value: MerkleContextV2) -> Self
Converts to this type from the input type.
Source§impl Serialize for MerkleContextV2
impl Serialize for MerkleContextV2
Source§impl TryFrom<MerkleContextV2> for MerkleContextV2
impl TryFrom<MerkleContextV2> for MerkleContextV2
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MerkleContextV2) -> Result<Self, ConversionError>
fn try_from(value: MerkleContextV2) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MerkleContextV2
impl RefUnwindSafe for MerkleContextV2
impl Send for MerkleContextV2
impl Sync for MerkleContextV2
impl Unpin for MerkleContextV2
impl UnsafeUnpin for MerkleContextV2
impl UnwindSafe for MerkleContextV2
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