pub struct StateQueueData {
pub initial_root: Hash,
pub input_queue: Option<InputQueueData>,
pub nodes: Vec<Node>,
pub output_queue: Option<OutputQueueData>,
pub root_seq: u64,
}Expand description
State queue data with shared tree nodes for output and input queues
JSON schema
{
"description": "State queue data with shared tree nodes for output and input queues",
"type": "object",
"required": [
"initialRoot",
"rootSeq"
],
"properties": {
"initialRoot": {
"$ref": "#/components/schemas/Hash"
},
"inputQueue": {
"$ref": "#/components/schemas/InputQueueData"
},
"nodes": {
"description": "Shared deduplicated tree nodes for state queues (output + input)",
"type": "array",
"items": {
"$ref": "#/components/schemas/Node"
}
},
"outputQueue": {
"$ref": "#/components/schemas/OutputQueueData"
},
"rootSeq": {
"description": "Sequence number of the root",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}Fields§
§initial_root: Hash§input_queue: Option<InputQueueData>§nodes: Vec<Node>Shared deduplicated tree nodes for state queues (output + input)
output_queue: Option<OutputQueueData>§root_seq: u64Sequence number of the root
Implementations§
Source§impl StateQueueData
impl StateQueueData
pub fn builder() -> StateQueueData
Trait Implementations§
Source§impl Clone for StateQueueData
impl Clone for StateQueueData
Source§fn clone(&self) -> StateQueueData
fn clone(&self) -> StateQueueData
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 StateQueueData
impl Debug for StateQueueData
Source§impl<'de> Deserialize<'de> for StateQueueData
impl<'de> Deserialize<'de> for StateQueueData
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<StateQueueData> for StateQueueData
impl From<StateQueueData> for StateQueueData
Source§fn from(value: StateQueueData) -> Self
fn from(value: StateQueueData) -> Self
Converts to this type from the input type.
Source§impl Serialize for StateQueueData
impl Serialize for StateQueueData
Source§impl TryFrom<StateQueueData> for StateQueueData
impl TryFrom<StateQueueData> for StateQueueData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StateQueueData) -> Result<Self, ConversionError>
fn try_from(value: StateQueueData) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StateQueueData
impl RefUnwindSafe for StateQueueData
impl Send for StateQueueData
impl Sync for StateQueueData
impl Unpin for StateQueueData
impl UnsafeUnpin for StateQueueData
impl UnwindSafe for StateQueueData
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