Enum misskey::TimelineRange
source · [−]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,
}
Expand description
Range in the timeline.
Variants
DateTime
Fields
Range in the timeline bounded by time.
Id
Fields
Range in the timeline bounded by note IDs.
Unbounded
Unbounded range.
Implementations
sourceimpl<E> TimelineRange<E>
impl<E> TimelineRange<E>
sourcepub fn until(cursor: TimelineCursor<E>) -> TimelineRange<E>
pub fn until(cursor: TimelineCursor<E>) -> TimelineRange<E>
Returns TimelineRange
for the range to a specified point on the timeline.
sourcepub fn since(cursor: TimelineCursor<E>) -> TimelineRange<E>
pub fn since(cursor: TimelineCursor<E>) -> TimelineRange<E>
Returns TimelineRange
for the range from a specified point on the timeline.
Trait Implementations
sourceimpl<E> Clone for TimelineRange<E>
impl<E> Clone for TimelineRange<E>
sourcefn clone(&self) -> TimelineRange<E>
fn clone(&self) -> TimelineRange<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E> Debug for TimelineRange<E>
impl<E> Debug for TimelineRange<E>
sourceimpl<'_, E> From<Range<&'_ E>> for TimelineRange<E> where
E: Entity,
impl<'_, E> From<Range<&'_ E>> for TimelineRange<E> where
E: Entity,
sourcefn from(range: Range<&E>) -> TimelineRange<E>
fn from(range: Range<&E>) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<E> From<Range<Id<E>>> for TimelineRange<E> where
E: Entity,
impl<E> From<Range<Id<E>>> for TimelineRange<E> where
E: Entity,
sourcefn from(range: Range<Id<E>>) -> TimelineRange<E>
fn from(range: Range<Id<E>>) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<'_, E> From<RangeFrom<&'_ E>> for TimelineRange<E> where
E: Entity,
impl<'_, E> From<RangeFrom<&'_ E>> for TimelineRange<E> where
E: Entity,
sourcefn from(range: RangeFrom<&E>) -> TimelineRange<E>
fn from(range: RangeFrom<&E>) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<E> From<RangeFrom<Id<E>>> for TimelineRange<E> where
E: Entity,
impl<E> From<RangeFrom<Id<E>>> for TimelineRange<E> where
E: Entity,
sourcefn from(range: RangeFrom<Id<E>>) -> TimelineRange<E>
fn from(range: RangeFrom<Id<E>>) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<E> From<RangeFull> for TimelineRange<E> where
E: Entity,
impl<E> From<RangeFull> for TimelineRange<E> where
E: Entity,
sourcefn from(RangeFull) -> TimelineRange<E>
fn from(RangeFull) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<'_, E> From<RangeTo<&'_ E>> for TimelineRange<E> where
E: Entity,
impl<'_, E> From<RangeTo<&'_ E>> for TimelineRange<E> where
E: Entity,
sourcefn from(range: RangeTo<&E>) -> TimelineRange<E>
fn from(range: RangeTo<&E>) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<E> From<RangeTo<Id<E>>> for TimelineRange<E> where
E: Entity,
impl<E> From<RangeTo<Id<E>>> for TimelineRange<E> where
E: Entity,
sourcefn from(range: RangeTo<Id<E>>) -> TimelineRange<E>
fn from(range: RangeTo<Id<E>>) -> TimelineRange<E>
Converts to this type from the input type.
sourceimpl<E> PartialEq<TimelineRange<E>> for TimelineRange<E>
impl<E> PartialEq<TimelineRange<E>> for TimelineRange<E>
impl<E> Copy for TimelineRange<E>
impl<E> Eq for TimelineRange<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for TimelineRange<E>
impl<E> Send for TimelineRange<E>
impl<E> Sync for TimelineRange<E>
impl<E> Unpin for TimelineRange<E>
impl<E> UnwindSafe for TimelineRange<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more