pub struct EthValueObservation {
pub eth_value: EthValueObservationEthValue,
pub type_: EthValueObservationType,
}Expand description
The transaction value an ethValue criterion compared.
JSON schema
{
"title": "EthValueObservation",
"description": "The transaction `value` an `ethValue` criterion compared.",
"examples": [
{
"ethValue": "500000000000000000",
"type": "ethValue"
}
],
"type": "object",
"required": [
"ethValue",
"type"
],
"properties": {
"ethValue": {
"description": "The transaction `value`, in wei. `0` when the transaction transfers no ETH.",
"examples": [
"500000000000000000"
],
"type": "string",
"maxLength": 78,
"pattern": "^[0-9]+$"
},
"type": {
"description": "The criterion type.",
"examples": [
"ethValue"
],
"type": "string",
"enum": [
"ethValue"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§eth_value: EthValueObservationEthValueThe transaction value, in wei. 0 when the transaction transfers no ETH.
type_: EthValueObservationTypeThe criterion type.
Implementations§
Source§impl EthValueObservation
impl EthValueObservation
pub fn builder() -> EthValueObservation
Trait Implementations§
Source§impl Clone for EthValueObservation
impl Clone for EthValueObservation
Source§impl Debug for EthValueObservation
impl Debug for EthValueObservation
Source§impl<'de> Deserialize<'de> for EthValueObservation
impl<'de> Deserialize<'de> for EthValueObservation
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<&EthValueObservation> for EthValueObservation
impl From<&EthValueObservation> for EthValueObservation
Source§fn from(value: &EthValueObservation) -> Self
fn from(value: &EthValueObservation) -> Self
Converts to this type from the input type.
Source§impl From<EthValueObservation> for PolicyCriterionObservation
impl From<EthValueObservation> for PolicyCriterionObservation
Source§fn from(value: EthValueObservation) -> Self
fn from(value: EthValueObservation) -> Self
Converts to this type from the input type.
Source§impl From<EthValueObservation> for EthValueObservation
impl From<EthValueObservation> for EthValueObservation
Source§fn from(value: EthValueObservation) -> Self
fn from(value: EthValueObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for EthValueObservation
impl Serialize for EthValueObservation
Source§impl TryFrom<EthValueObservation> for EthValueObservation
impl TryFrom<EthValueObservation> for EthValueObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EthValueObservation) -> Result<Self, ConversionError>
fn try_from(value: EthValueObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EthValueObservation
impl RefUnwindSafe for EthValueObservation
impl Send for EthValueObservation
impl Sync for EthValueObservation
impl Unpin for EthValueObservation
impl UnsafeUnpin for EthValueObservation
impl UnwindSafe for EthValueObservation
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