Struct ruma_client_api::r0::capabilities::Capabilities [−][src]
pub struct Capabilities {
pub change_password: ChangePasswordCapability,
pub room_versions: RoomVersionsCapability,
// some fields omitted
}Expand description
Contains information about all the capabilities that the server supports.
Fields
change_password: ChangePasswordCapabilityCapability to indicate if the user can change their password.
room_versions: RoomVersionsCapabilityThe room versions the server supports.
Implementations
Returns the value of the given capability.
Prefer to use the public fields of Capabilities where possible; this method is meant to be
used for unsupported capabilities only.
Sets a capability to the given value.
Prefer to use the public fields of Capabilities where possible; this method is meant to be
used for unsupported capabilities only and does not allow setting arbitrary data for
supported ones.
pub fn iter(&self) -> CapabilitiesIter<'_>ⓘNotable traits for CapabilitiesIter<'a>
impl<'a> Iterator for CapabilitiesIter<'a> type Item = CapabilityRef<'a>;
pub fn iter(&self) -> CapabilitiesIter<'_>ⓘNotable traits for CapabilitiesIter<'a>
impl<'a> Iterator for CapabilitiesIter<'a> type Item = CapabilityRef<'a>;Returns an iterator over the capabilities.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
type Item = CapabilityRef<'a>
type Item = CapabilityRef<'a>The type of the elements being iterated over.
type IntoIter = CapabilitiesIter<'a>
type IntoIter = CapabilitiesIter<'a>Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for Capabilitiesimpl Send for Capabilitiesimpl Sync for Capabilitiesimpl Unpin for Capabilitiesimpl UnwindSafe for CapabilitiesBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more