pub struct SupportedVersions {
pub versions: BTreeSet<MatrixVersion>,
pub features: BTreeSet<FeatureFlag>,
}
Available on crate feature
api
only.Expand description
The list of Matrix versions and features supported by a homeserver.
Fields§
§versions: BTreeSet<MatrixVersion>
The Matrix versions that are supported by the homeserver.
This set contains only known versions.
features: BTreeSet<FeatureFlag>
The features that are supported by the homeserver.
This matches the unstable_features
field of the /versions
endpoint, without the boolean
value.
Implementations§
Trait Implementations§
Source§impl Clone for SupportedVersions
impl Clone for SupportedVersions
Source§fn clone(&self) -> SupportedVersions
fn clone(&self) -> SupportedVersions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SupportedVersions
impl RefUnwindSafe for SupportedVersions
impl Send for SupportedVersions
impl Sync for SupportedVersions
impl Unpin for SupportedVersions
impl UnwindSafe for SupportedVersions
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
Mutably borrows from an owned value. Read more