pub struct GoogleCloudRetailV2ConditionTimeRange {
pub end_time: Option<DateTime<Utc>>,
pub start_time: Option<DateTime<Utc>>,
}Expand description
Used for time-dependent conditions. Example: Want to have rule applied for week long sale.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_time: Option<DateTime<Utc>>End of time range. Range is inclusive.
start_time: Option<DateTime<Utc>>Start of time range. Range is inclusive.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2ConditionTimeRange
impl Clone for GoogleCloudRetailV2ConditionTimeRange
Source§fn clone(&self) -> GoogleCloudRetailV2ConditionTimeRange
fn clone(&self) -> GoogleCloudRetailV2ConditionTimeRange
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 Default for GoogleCloudRetailV2ConditionTimeRange
impl Default for GoogleCloudRetailV2ConditionTimeRange
Source§fn default() -> GoogleCloudRetailV2ConditionTimeRange
fn default() -> GoogleCloudRetailV2ConditionTimeRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudRetailV2ConditionTimeRange
impl<'de> Deserialize<'de> for GoogleCloudRetailV2ConditionTimeRange
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
impl Part for GoogleCloudRetailV2ConditionTimeRange
Auto Trait Implementations§
impl Freeze for GoogleCloudRetailV2ConditionTimeRange
impl RefUnwindSafe for GoogleCloudRetailV2ConditionTimeRange
impl Send for GoogleCloudRetailV2ConditionTimeRange
impl Sync for GoogleCloudRetailV2ConditionTimeRange
impl Unpin for GoogleCloudRetailV2ConditionTimeRange
impl UnwindSafe for GoogleCloudRetailV2ConditionTimeRange
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