#[non_exhaustive]pub struct ArbitraryRuleResponseDataAttributes {Show 13 fields
pub costs_to_allocate: Vec<ArbitraryRuleResponseDataAttributesCostsToAllocateItems>,
pub created: DateTime<Utc>,
pub enabled: bool,
pub last_modified_user_uuid: String,
pub order_id: i64,
pub provider: Vec<String>,
pub rejected: Option<bool>,
pub rule_name: String,
pub strategy: ArbitraryRuleResponseDataAttributesStrategy,
pub type_: String,
pub updated: DateTime<Utc>,
pub version: i32,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The definition of ArbitraryRuleResponseDataAttributes
object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.costs_to_allocate: Vec<ArbitraryRuleResponseDataAttributesCostsToAllocateItems>
The attributes
costs_to_allocate
.
created: DateTime<Utc>
The attributes
created
.
enabled: bool
The attributes
enabled
.
last_modified_user_uuid: String
The attributes
last_modified_user_uuid
.
order_id: i64
The attributes
order_id
.
provider: Vec<String>
The attributes
provider
.
rejected: Option<bool>
The attributes
rejected
.
rule_name: String
The attributes
rule_name
.
strategy: ArbitraryRuleResponseDataAttributesStrategy
The definition of ArbitraryRuleResponseDataAttributesStrategy
object.
type_: String
The attributes
type
.
updated: DateTime<Utc>
The attributes
updated
.
version: i32
The attributes
version
.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl ArbitraryRuleResponseDataAttributes
impl ArbitraryRuleResponseDataAttributes
pub fn new( costs_to_allocate: Vec<ArbitraryRuleResponseDataAttributesCostsToAllocateItems>, created: DateTime<Utc>, enabled: bool, last_modified_user_uuid: String, order_id: i64, provider: Vec<String>, rule_name: String, strategy: ArbitraryRuleResponseDataAttributesStrategy, type_: String, updated: DateTime<Utc>, version: i32, ) -> ArbitraryRuleResponseDataAttributes
pub fn rejected(self, value: bool) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for ArbitraryRuleResponseDataAttributes
impl Clone for ArbitraryRuleResponseDataAttributes
Source§fn clone(&self) -> ArbitraryRuleResponseDataAttributes
fn clone(&self) -> ArbitraryRuleResponseDataAttributes
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<'de> Deserialize<'de> for ArbitraryRuleResponseDataAttributes
impl<'de> Deserialize<'de> for ArbitraryRuleResponseDataAttributes
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 PartialEq for ArbitraryRuleResponseDataAttributes
impl PartialEq for ArbitraryRuleResponseDataAttributes
Source§fn eq(&self, other: &ArbitraryRuleResponseDataAttributes) -> bool
fn eq(&self, other: &ArbitraryRuleResponseDataAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ArbitraryRuleResponseDataAttributes
Auto Trait Implementations§
impl Freeze for ArbitraryRuleResponseDataAttributes
impl RefUnwindSafe for ArbitraryRuleResponseDataAttributes
impl Send for ArbitraryRuleResponseDataAttributes
impl Sync for ArbitraryRuleResponseDataAttributes
impl Unpin for ArbitraryRuleResponseDataAttributes
impl UnwindSafe for ArbitraryRuleResponseDataAttributes
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