pub struct Filter<'a> {
pub generic_search_term: Option<&'a str>,
pub room_types: Vec<RoomTypeFilter, Global>,
}
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, Global>
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
sourceimpl<'a> Serialize for Filter<'a>
impl<'a> Serialize for Filter<'a>
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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