pub enum LockReason {
OffTopic,
TooHeated,
Resolved,
Spam,
}
Expand description
The reason for locking the issue or pull request conversation. Lock will fail if you don’t use one of these reasons: * off-topic
* too heated
* resolved
* spam
Variants§
Trait Implementations§
Source§impl Clone for LockReason
impl Clone for LockReason
Source§fn clone(&self) -> LockReason
fn clone(&self) -> LockReason
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 moreSource§impl Debug for LockReason
impl Debug for LockReason
Source§impl Default for LockReason
impl Default for LockReason
Source§fn default() -> LockReason
fn default() -> LockReason
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LockReason
impl<'de> Deserialize<'de> for LockReason
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
Source§impl Hash for LockReason
impl Hash for LockReason
Source§impl Ord for LockReason
impl Ord for LockReason
Source§fn cmp(&self, other: &LockReason) -> Ordering
fn cmp(&self, other: &LockReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LockReason
impl PartialEq for LockReason
Source§impl PartialOrd for LockReason
impl PartialOrd for LockReason
Source§impl Serialize for LockReason
impl Serialize for LockReason
impl Copy for LockReason
impl Eq for LockReason
impl StructuralPartialEq for LockReason
Auto Trait Implementations§
impl Freeze for LockReason
impl RefUnwindSafe for LockReason
impl Send for LockReason
impl Sync for LockReason
impl Unpin for LockReason
impl UnwindSafe for LockReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.