Enum ruma_common::api::VersioningDecision
source · [−]pub enum VersioningDecision {
Unstable,
Stable {
any_deprecated: bool,
all_deprecated: bool,
any_removed: bool,
},
Removed,
}
Expand description
A versioning “decision” derived from a set of matrix versions.
Variants
Unstable
The unstable endpoint should be used.
Stable
Fields
any_deprecated: bool
If any version denoted deprecation.
all_deprecated: bool
If all versions denoted deprecation.
any_removed: bool
If any version denoted removal.
The stable endpoint should be used.
Note, in the special case that all versions note v1.0, and the
r0_path
is not None
, that path should be used.
Removed
This endpoint was removed in all versions, it should not be used.
Trait Implementations
sourceimpl Clone for VersioningDecision
impl Clone for VersioningDecision
sourcefn clone(&self) -> VersioningDecision
fn clone(&self) -> VersioningDecision
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VersioningDecision
impl Debug for VersioningDecision
sourceimpl Hash for VersioningDecision
impl Hash for VersioningDecision
sourceimpl PartialEq<VersioningDecision> for VersioningDecision
impl PartialEq<VersioningDecision> for VersioningDecision
sourcefn eq(&self, other: &VersioningDecision) -> bool
fn eq(&self, other: &VersioningDecision) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VersioningDecision) -> bool
fn ne(&self, other: &VersioningDecision) -> bool
This method tests for !=
.
impl Copy for VersioningDecision
impl Eq for VersioningDecision
impl StructuralEq for VersioningDecision
impl StructuralPartialEq for VersioningDecision
Auto Trait Implementations
impl RefUnwindSafe for VersioningDecision
impl Send for VersioningDecision
impl Sync for VersioningDecision
impl Unpin for VersioningDecision
impl UnwindSafe for VersioningDecision
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more