Enum ruma_client_api::sync::sync_events::v3::Filter
source · [−]pub enum Filter<'a> {
FilterDefinition(FilterDefinition<'a>),
FilterId(&'a str),
}
Available on crate features
client
or server
only.Expand description
A filter represented either as its full JSON definition or the ID of a saved filter.
Variants
FilterDefinition(FilterDefinition<'a>)
A complete filter definition serialized to JSON.
FilterId(&'a str)
The ID of a filter saved on the server.
Trait Implementations
sourceimpl<'a> From<FilterDefinition<'a>> for Filter<'a>
impl<'a> From<FilterDefinition<'a>> for Filter<'a>
sourcefn from(def: FilterDefinition<'a>) -> Self
fn from(def: FilterDefinition<'a>) -> Self
Converts to this type from the input type.
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