[][src]Enum misskey_util::TimelineRange

pub enum TimelineRange<E> {
    DateTime {
        since_date: Option<DateTime<Utc>>,
        until_date: Option<DateTime<Utc>>,
    },
    Id {
        since_id: Option<Id<E>>,
        until_id: Option<Id<E>>,
    },
    Unbounded,
}

Range in the timeline.

Variants

DateTime

Range in the timeline bounded by time.

Fields of DateTime

since_date: Option<DateTime<Utc>>

The lower bound of the range (inclusive), if it exists.

until_date: Option<DateTime<Utc>>

The upper bound of the range (exclusive), if it exists.

Id

Range in the timeline bounded by note IDs.

Fields of Id

since_id: Option<Id<E>>

The lower bound of the range (inclusive), if it exists.

until_id: Option<Id<E>>

The upper bound of the range (exclusive), if it exists.

Unbounded

Unbounded range.

Implementations

impl<E> TimelineRange<E>[src]

pub fn until(cursor: TimelineCursor<E>) -> Self[src]

Returns TimelineRange for the range to a specified point on the timeline.

pub fn since(cursor: TimelineCursor<E>) -> Self[src]

Returns TimelineRange for the range from a specified point on the timeline.

Trait Implementations

impl<E> Clone for TimelineRange<E>[src]

impl<E> Copy for TimelineRange<E>[src]

impl<E> Debug for TimelineRange<E>[src]

impl<E> Eq for TimelineRange<E>[src]

impl<E: Entity, '_> From<Range<&'_ E>> for TimelineRange<E>[src]

impl<E: Entity> From<Range<DateTime<Utc>>> for TimelineRange<E>[src]

impl<E: Entity> From<Range<Id<E>>> for TimelineRange<E>[src]

impl<E: Entity, '_> From<RangeFrom<&'_ E>> for TimelineRange<E>[src]

impl<E: Entity> From<RangeFrom<DateTime<Utc>>> for TimelineRange<E>[src]

impl<E: Entity> From<RangeFrom<Id<E>>> for TimelineRange<E>[src]

impl<E: Entity> From<RangeFull> for TimelineRange<E>[src]

impl<E: Entity, '_> From<RangeTo<&'_ E>> for TimelineRange<E>[src]

impl<E: Entity> From<RangeTo<DateTime<Utc>>> for TimelineRange<E>[src]

impl<E: Entity> From<RangeTo<Id<E>>> for TimelineRange<E>[src]

impl<E> PartialEq<TimelineRange<E>> for TimelineRange<E>[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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.