#[non_exhaustive]pub enum ReviewerAuthority {
AutoReview,
Human,
None,
Unknown(String),
}Expand description
A profile’s selected reviewer authority. Open: the reviewer vocabulary can widen.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AutoReview
An automated reviewer decides (the :auto-review authority).
Human
A human reviewer decides (ReviewerAuthorityV1::Human — wire "human").
None
No reviewer authority is configured (ReviewerAuthorityV1::None, e.g.
:unrestricted) — the native catalog lists such a profile.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ReviewerAuthority
impl Clone for ReviewerAuthority
Source§impl Debug for ReviewerAuthority
impl Debug for ReviewerAuthority
Source§impl<'de> Deserialize<'de> for ReviewerAuthority
impl<'de> Deserialize<'de> for ReviewerAuthority
Source§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
impl Eq for ReviewerAuthority
Source§impl PartialEq for ReviewerAuthority
impl PartialEq for ReviewerAuthority
Source§impl Serialize for ReviewerAuthority
impl Serialize for ReviewerAuthority
impl StructuralPartialEq for ReviewerAuthority
Auto Trait Implementations§
impl Freeze for ReviewerAuthority
impl RefUnwindSafe for ReviewerAuthority
impl Send for ReviewerAuthority
impl Sync for ReviewerAuthority
impl Unpin for ReviewerAuthority
impl UnsafeUnpin for ReviewerAuthority
impl UnwindSafe for ReviewerAuthority
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