Struct google_apigee1::api::GoogleTypeInterval
source · pub struct GoogleTypeInterval {
pub end_time: Option<DateTime<Utc>>,
pub start_time: Option<DateTime<Utc>>,
}
Expand description
Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_time: Option<DateTime<Utc>>
Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
start_time: Option<DateTime<Utc>>
Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
Trait Implementations§
source§impl Clone for GoogleTypeInterval
impl Clone for GoogleTypeInterval
source§fn clone(&self) -> GoogleTypeInterval
fn clone(&self) -> GoogleTypeInterval
Returns a copy 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 GoogleTypeInterval
impl Debug for GoogleTypeInterval
source§impl Default for GoogleTypeInterval
impl Default for GoogleTypeInterval
source§fn default() -> GoogleTypeInterval
fn default() -> GoogleTypeInterval
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleTypeInterval
impl<'de> Deserialize<'de> for GoogleTypeInterval
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 Serialize for GoogleTypeInterval
impl Serialize for GoogleTypeInterval
impl Part for GoogleTypeInterval
Auto Trait Implementations§
impl RefUnwindSafe for GoogleTypeInterval
impl Send for GoogleTypeInterval
impl Sync for GoogleTypeInterval
impl Unpin for GoogleTypeInterval
impl UnwindSafe for GoogleTypeInterval
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