#[non_exhaustive]pub struct Profiles {
pub enabled: Option<bool>,
pub lists: Option<Vec<String>>,
pub rooms: Option<Vec<ExtensionRoomConfig>>,
pub fields: Option<Vec<ProfileFieldName>>,
pub include_history: Option<bool>,
}api and crate feature unstable-msc4186 and crate feature unstable-msc4262 and (crate features client-api-c or client-api-s) and (crate features client or server) only.Expand description
User profiles extension.
Specified as part of MSC4262.
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.enabled: Option<bool>Activate or deactivate this extension.
lists: Option<Vec<String>>List of list names for which user profiles should be enabled.
If not defined, will be enabled for all the lists appearing in the request. If defined and empty, will be disabled for all the lists.
rooms: Option<Vec<ExtensionRoomConfig>>List of room names for which user profiles should be enabled.
If not defined, will be enabled for all the rooms appearing in the room subscriptions. If defined and empty, will be disabled for all the rooms.
fields: Option<Vec<ProfileFieldName>>Optional filter to control which profile fields to receive updates for. If omitted, all profile field updates are included.
include_history: Option<bool>Optional flag to control whether the initial sync includes recent historical profile changes:
If false (default), only current profile states are sent on initial sync. If true, the server may include recent profile changes that occurred before the sync.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profiles
impl<'de> Deserialize<'de> for Profiles
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Profiles, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Profiles, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Profiles
impl Serialize for Profiles
Source§fn 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,
impl StructuralPartialEq for Profiles
Auto Trait Implementations§
impl Freeze for Profiles
impl RefUnwindSafe for Profiles
impl Send for Profiles
impl Sync for Profiles
impl Unpin for Profiles
impl UnsafeUnpin for Profiles
impl UnwindSafe for Profiles
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more