Struct gapi_grpc::google::actions::type::DateTimeRange[][src]

pub struct DateTimeRange {
    pub start: Option<DateTime>,
    pub end: Option<DateTime>,
}

Represents a date and time range. This can represent:

When considering whether a DateTime falls within a DateTimeRange, the start of the range is inclusive and the end is exclusive.

While [google.type.DateTime][google.type.DateTime] allows zero years, DateTimeRange does not. Year must always be non-zero.

When both start and end are set, either both or neither must have a time_offset. When set, time_offset can be specified by either utc_offset or time_zone and must match for start and end, that is if start has utc_offset set then end must also have utc_offset set. The values of utc_offset or time_zone need not be the same for start and end.

When both start and end are set, start must be chronologically less than or equal to end. When start and end are equal, the range is empty.

The semantics of start and end are the same as those of [google.type.DateTime][google.type.DateTime].

Fields

start: Option<DateTime>

DateTime at which the date range begins. If unset, the range has no beginning bound.

end: Option<DateTime>

DateTime at which the date range ends. If unset, the range has no ending bound.

Trait Implementations

impl Clone for DateTimeRange[src]

impl Debug for DateTimeRange[src]

impl Default for DateTimeRange[src]

impl Message for DateTimeRange[src]

impl PartialEq<DateTimeRange> for DateTimeRange[src]

impl StructuralPartialEq for DateTimeRange[src]

Auto Trait Implementations

impl RefUnwindSafe for DateTimeRange

impl Send for DateTimeRange

impl Sync for DateTimeRange

impl Unpin for DateTimeRange

impl UnwindSafe for DateTimeRange

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]