Struct ruma_common::directory::Filter
source · [−]pub struct Filter<'a> {
pub generic_search_term: Option<&'a str>,
pub room_types: Vec<RoomTypeFilter>,
}
Expand description
A filter for public rooms lists
Fields
generic_search_term: Option<&'a str>
A string to search for in the room metadata, e.g. name, topic, canonical alias etc.
room_types: Vec<RoomTypeFilter>
Available on crate feature
unstable-msc3827
only.The room types to include in the results.
Includes all room types if it is empty.
This field uses the unstable prefix from MSC3827.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Filter<'a>
impl<'a> Send for Filter<'a>
impl<'a> Sync for Filter<'a>
impl<'a> Unpin for Filter<'a>
impl<'a> UnwindSafe for Filter<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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