[][src]Struct cloudwatch_logs_upload::TimestampRange

pub struct TimestampRange {
    pub start: Timestamp,
    pub end: Timestamp,
}

An inclusive range of timestamps.

Fields

start: Timestampend: Timestamp

Implementations

impl TimestampRange[src]

pub fn new(t: Timestamp) -> TimestampRange[src]

Create a range for a single instant in time.

pub fn duration_in_millis(&self) -> i64[src]

Time in milliseconds between start and end.

pub fn expand_to_include(&mut self, t: Timestamp)[src]

Adjust start and end as needed to include t.

pub fn expand_to_include_copy(&self, t: Timestamp) -> TimestampRange[src]

Create a new TimestampRange with start and end adjusted as needed to include t.

Trait Implementations

impl Clone for TimestampRange[src]

impl Copy for TimestampRange[src]

impl Debug for TimestampRange[src]

impl Default for TimestampRange[src]

impl Eq for TimestampRange[src]

impl PartialEq<TimestampRange> for TimestampRange[src]

impl StructuralEq for TimestampRange[src]

impl StructuralPartialEq for TimestampRange[src]

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.