Struct synapse_admin_api::rooms::list_rooms::v1::Request [−][src]
#[non_exhaustive]pub struct Request { pub from: Option<UInt>, pub limit: Option<UInt>, pub order_by: Option<RoomSortOrder>, pub dir: Option<SortDirection>, pub search_term: Option<String>, }
Expand description
Data for a request to the list_rooms_v1 API endpoint.
list rooms endpoint
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.from: Option<UInt>Offset in the returned list. Defaults to 0.
limit: Option<UInt>Maximum amount of rooms to return. Defaults to 100.
order_by: Option<RoomSortOrder>Sort order of the response.
dir: Option<SortDirection>Sort direction of the response.
search_term: Option<String>Filter rooms by their room name. Search term can be contained in any part of the room name. Defaults to no filtering.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Request
impl UnwindSafe for Request
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more