pub struct NetUsdChangeObservation {
pub change_cents: Option<i64>,
pub skipped: bool,
pub type_: NetUsdChangeObservationType,
}Expand description
The simulated net USD change a netUSDChange criterion compared.
JSON schema
{
"title": "NetUSDChangeObservation",
"description": "The simulated net USD change a `netUSDChange` criterion compared.",
"examples": [
{
"changeCents": 12550,
"skipped": false,
"type": "netUSDChange"
}
],
"type": "object",
"required": [
"skipped",
"type"
],
"properties": {
"changeCents": {
"description": "The net USD change, in cents, of the transaction's asset transfers and exposure, as simulated at evaluation time. Present exactly when `skipped` is `false`.",
"examples": [
12550
],
"type": "integer"
},
"skipped": {
"description": "Whether simulation was skipped because the operation targets a testnet. A skipped criterion is treated as met, as in the real operation, and `changeCents` is omitted.",
"examples": [
false
],
"type": "boolean"
},
"type": {
"description": "The criterion type.",
"examples": [
"netUSDChange"
],
"type": "string",
"enum": [
"netUSDChange"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§change_cents: Option<i64>The net USD change, in cents, of the transaction’s asset transfers and exposure, as simulated at evaluation time. Present exactly when skipped is false.
skipped: boolWhether simulation was skipped because the operation targets a testnet. A skipped criterion is treated as met, as in the real operation, and changeCents is omitted.
type_: NetUsdChangeObservationTypeThe criterion type.
Implementations§
Source§impl NetUsdChangeObservation
impl NetUsdChangeObservation
pub fn builder() -> NetUsdChangeObservation
Trait Implementations§
Source§impl Clone for NetUsdChangeObservation
impl Clone for NetUsdChangeObservation
Source§impl Debug for NetUsdChangeObservation
impl Debug for NetUsdChangeObservation
Source§impl<'de> Deserialize<'de> for NetUsdChangeObservation
impl<'de> Deserialize<'de> for NetUsdChangeObservation
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<&NetUsdChangeObservation> for NetUsdChangeObservation
impl From<&NetUsdChangeObservation> for NetUsdChangeObservation
Source§fn from(value: &NetUsdChangeObservation) -> Self
fn from(value: &NetUsdChangeObservation) -> Self
Converts to this type from the input type.
Source§impl From<NetUsdChangeObservation> for PolicyCriterionObservation
impl From<NetUsdChangeObservation> for PolicyCriterionObservation
Source§fn from(value: NetUsdChangeObservation) -> Self
fn from(value: NetUsdChangeObservation) -> Self
Converts to this type from the input type.
Source§impl From<NetUsdChangeObservation> for NetUsdChangeObservation
impl From<NetUsdChangeObservation> for NetUsdChangeObservation
Source§fn from(value: NetUsdChangeObservation) -> Self
fn from(value: NetUsdChangeObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for NetUsdChangeObservation
impl Serialize for NetUsdChangeObservation
Source§impl TryFrom<NetUsdChangeObservation> for NetUsdChangeObservation
impl TryFrom<NetUsdChangeObservation> for NetUsdChangeObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NetUsdChangeObservation) -> Result<Self, ConversionError>
fn try_from(value: NetUsdChangeObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NetUsdChangeObservation
impl RefUnwindSafe for NetUsdChangeObservation
impl Send for NetUsdChangeObservation
impl Sync for NetUsdChangeObservation
impl Unpin for NetUsdChangeObservation
impl UnsafeUnpin for NetUsdChangeObservation
impl UnwindSafe for NetUsdChangeObservation
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