pub enum CorrectionTarget {
Fact {
fact_id: FactId,
},
Proposal {
proposal_id: ProposalId,
},
}Expand description
What a user correction applies to.
Variants§
Implementations§
Source§impl CorrectionTarget
impl CorrectionTarget
Sourcepub fn kind_label(&self) -> &'static str
pub fn kind_label(&self) -> &'static str
Stable short label for recall summaries and logs.
Trait Implementations§
Source§impl Clone for CorrectionTarget
impl Clone for CorrectionTarget
Source§fn clone(&self) -> CorrectionTarget
fn clone(&self) -> CorrectionTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CorrectionTarget
impl Debug for CorrectionTarget
Source§impl<'de> Deserialize<'de> for CorrectionTarget
impl<'de> Deserialize<'de> for CorrectionTarget
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 PartialEq for CorrectionTarget
impl PartialEq for CorrectionTarget
Source§fn eq(&self, other: &CorrectionTarget) -> bool
fn eq(&self, other: &CorrectionTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CorrectionTarget
impl Serialize for CorrectionTarget
impl Eq for CorrectionTarget
impl StructuralPartialEq for CorrectionTarget
Auto Trait Implementations§
impl Freeze for CorrectionTarget
impl RefUnwindSafe for CorrectionTarget
impl Send for CorrectionTarget
impl Sync for CorrectionTarget
impl Unpin for CorrectionTarget
impl UnsafeUnpin for CorrectionTarget
impl UnwindSafe for CorrectionTarget
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> 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.