pub struct RelationsOptions {
pub from: Option<String>,
pub dir: Direction,
pub limit: Option<UInt>,
pub include_relations: IncludeRelations,
pub recurse: bool,
}
Expand description
Options for messages
.
Fields§
§from: Option<String>
The token to start returning events from.
This token can be obtained from a Relations::prev_batch_token
returned by a previous call to super::Room::relations()
.
If from
isn’t provided the homeserver shall return a list of thread
roots from end of the timeline history.
dir: Direction
The direction to return events in.
Defaults to backwards.
limit: Option<UInt>
The maximum number of events to return.
Default: 10.
include_relations: IncludeRelations
Optional restrictions on the relations to include based on their type or event type.
Defaults to all relations.
recurse: bool
Whether to include events which relate indirectly to the given event.
These are events related to the given event via two or more direct relationships.
Trait Implementations§
Source§impl Clone for RelationsOptions
impl Clone for RelationsOptions
Source§fn clone(&self) -> RelationsOptions
fn clone(&self) -> RelationsOptions
Returns a duplicate 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 RelationsOptions
impl Debug for RelationsOptions
Source§impl Default for RelationsOptions
impl Default for RelationsOptions
Source§fn default() -> RelationsOptions
fn default() -> RelationsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RelationsOptions
impl RefUnwindSafe for RelationsOptions
impl Send for RelationsOptions
impl Sync for RelationsOptions
impl Unpin for RelationsOptions
impl UnwindSafe for RelationsOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more