Struct ruma_client_api::r0::filter::IncomingFilterDefinition [−][src]
#[non_exhaustive]pub struct IncomingFilterDefinition { pub event_fields: Option<Vec<String>>, pub event_format: EventFormat, pub presence: IncomingFilter, pub account_data: IncomingFilter, pub room: IncomingRoomFilter, }
Expand description
‘Incoming’ variant of FilterDefinition.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event_fields: Option<Vec<String>>Expand description
List of event fields to include.
If this list is absent then all fields are included. The entries may include ‘.’ characters 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: EventFormatExpand description
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’.
presence: IncomingFilterExpand description
The presence updates to include.
account_data: IncomingFilterExpand description
The user account data that isn’t associated with rooms to include.
room: IncomingRoomFilterExpand description
Filters to be applied to room data.
Implementations
Trait Implementations
impl CanBeEmpty for IncomingFilterDefinition[src]
impl CanBeEmpty for IncomingFilterDefinition[src]impl Clone for IncomingFilterDefinition[src]
impl Clone for IncomingFilterDefinition[src]fn clone(&self) -> IncomingFilterDefinition[src]
fn clone(&self) -> IncomingFilterDefinition[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for IncomingFilterDefinition[src]
impl Debug for IncomingFilterDefinition[src]impl Default for IncomingFilterDefinition[src]
impl Default for IncomingFilterDefinition[src]fn default() -> IncomingFilterDefinition[src]
fn default() -> IncomingFilterDefinition[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for IncomingFilterDefinition[src]
impl<'de> Deserialize<'de> for IncomingFilterDefinition[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for IncomingFilterDefinition[src]
impl Serialize for IncomingFilterDefinition[src]Auto Trait Implementations
impl RefUnwindSafe for IncomingFilterDefinition
impl Send for IncomingFilterDefinition
impl Sync for IncomingFilterDefinition
impl Unpin for IncomingFilterDefinition
impl UnwindSafe for IncomingFilterDefinition
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,