pub struct ResponseProtocolState {
pub component_id: String,
pub attributes: HashMap<String, Bytes>,
pub balances: HashMap<Bytes, Bytes>,
}Expand description
Protocol State struct for the response from Tycho server for a protocol state request.
Fields§
§component_id: StringComponent id this state belongs to
attributes: HashMap<String, Bytes>Attributes of the component. If an attribute’s value is a bigint,
it will be encoded as a big endian signed hex string.
balances: HashMap<Bytes, Bytes>Sum aggregated balances of the component
Trait Implementations§
Source§impl Clone for ResponseProtocolState
impl Clone for ResponseProtocolState
Source§fn clone(&self) -> ResponseProtocolState
fn clone(&self) -> ResponseProtocolState
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 ResponseProtocolState
impl Debug for ResponseProtocolState
Source§impl DeepSizeOf for ResponseProtocolState
impl DeepSizeOf for ResponseProtocolState
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl Default for ResponseProtocolState
impl Default for ResponseProtocolState
Source§fn default() -> ResponseProtocolState
fn default() -> ResponseProtocolState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseProtocolState
impl<'de> Deserialize<'de> for ResponseProtocolState
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<ProtocolComponentState> for ResponseProtocolState
impl From<ProtocolComponentState> for ResponseProtocolState
Source§fn from(value: ProtocolComponentState) -> Self
fn from(value: ProtocolComponentState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseProtocolState
impl PartialEq for ResponseProtocolState
Source§impl Serialize for ResponseProtocolState
impl Serialize for ResponseProtocolState
Source§impl<'__s> ToSchema<'__s> for ResponseProtocolState
impl<'__s> ToSchema<'__s> for ResponseProtocolState
impl StructuralPartialEq for ResponseProtocolState
Auto Trait Implementations§
impl Freeze for ResponseProtocolState
impl RefUnwindSafe for ResponseProtocolState
impl Send for ResponseProtocolState
impl Sync for ResponseProtocolState
impl Unpin for ResponseProtocolState
impl UnwindSafe for ResponseProtocolState
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