pub struct ProtocolComponent {
pub id: String,
pub protocol_system: String,
pub protocol_type_name: String,
pub chain: Chain,
pub tokens: Vec<Bytes>,
pub contract_ids: Vec<Bytes>,
pub static_attributes: HashMap<String, Bytes>,
pub change: ChangeType,
pub creation_tx: Bytes,
pub created_at: NaiveDateTime,
}Expand description
Represents the static parts of a protocol component.
Fields§
§id: StringUnique identifier for this component
protocol_system: StringProtocol system this component is part of
protocol_type_name: StringType of the protocol system
chain: Chain§tokens: Vec<Bytes>Token addresses the component operates on
contract_ids: Vec<Bytes>Contract addresses involved in the components operations (may be empty for native implementations)
static_attributes: HashMap<String, Bytes>Constant attributes of the component
change: ChangeTypeIndicates if last change was update, create or delete (for internal use only).
creation_tx: BytesTransaction hash which created this component
created_at: NaiveDateTimeDate time of creation in UTC time
Trait Implementations§
Source§impl Clone for ProtocolComponent
impl Clone for ProtocolComponent
Source§fn clone(&self) -> ProtocolComponent
fn clone(&self) -> ProtocolComponent
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 ProtocolComponent
impl Debug for ProtocolComponent
Source§impl Default for ProtocolComponent
impl Default for ProtocolComponent
Source§fn default() -> ProtocolComponent
fn default() -> ProtocolComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtocolComponent
impl<'de> Deserialize<'de> for ProtocolComponent
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<ProtocolComponent> for ProtocolComponent
impl From<ProtocolComponent> for ProtocolComponent
Source§fn from(value: ProtocolComponent) -> Self
fn from(value: ProtocolComponent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtocolComponent
impl PartialEq for ProtocolComponent
Source§impl Serialize for ProtocolComponent
impl Serialize for ProtocolComponent
Source§impl<'__s> ToSchema<'__s> for ProtocolComponent
impl<'__s> ToSchema<'__s> for ProtocolComponent
impl StructuralPartialEq for ProtocolComponent
Auto Trait Implementations§
impl !Freeze for ProtocolComponent
impl RefUnwindSafe for ProtocolComponent
impl Send for ProtocolComponent
impl Sync for ProtocolComponent
impl Unpin for ProtocolComponent
impl UnwindSafe for ProtocolComponent
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