[−][src]Struct ruma_client_api::r0::filter::FilterDefinition
A filter definition
Fields
event_fields: Option<Vec<String>>
List of event fields to include.
If this list is absent then all fields are included. The entries may include '.' charaters to indicate sub-fields. So ['content.body'] will include the 'body' field of the 'content' object. A literal '.' character in a field name may be escaped using a ''. A server may include more fields than were requested.
event_format: Option<EventFormat>
The format to use for events.
'client' will return the events in a format suitable for clients. 'federation' will return the raw event as received over federation. The default is 'client'.
account_data: Option<Filter>
The user account data that isn't associated with rooms to include.
room: Option<RoomFilter>
Filters to be applied to room data.
presence: Option<Filter>
The presence updates to include.
Methods
impl FilterDefinition
[src]
pub fn ignore_all() -> Self
[src]
A filter that can be used to ignore all events
Trait Implementations
impl Clone for FilterDefinition
[src]
fn clone(&self) -> FilterDefinition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FilterDefinition
[src]
impl Default for FilterDefinition
[src]
fn default() -> FilterDefinition
[src]
impl<'de> Deserialize<'de> for FilterDefinition
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for FilterDefinition
[src]
Auto Trait Implementations
impl RefUnwindSafe for FilterDefinition
impl Send for FilterDefinition
impl Sync for FilterDefinition
impl Unpin for FilterDefinition
impl UnwindSafe for FilterDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,