pub enum ProposalDecision {
Approve,
Reject,
Comment,
RequestChanges,
}Variants§
Implementations§
Source§impl ProposalDecision
impl ProposalDecision
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the bare variant name as a lowercase string, matching the serde
rename_all = "snake_case" representation. Use this when storing the
decision as a plain TEXT column — not serde_json::to_string, which
would produce a JSON-quoted string ("\"approve\"" instead of "approve").
Trait Implementations§
Source§impl Clone for ProposalDecision
impl Clone for ProposalDecision
Source§fn clone(&self) -> ProposalDecision
fn clone(&self) -> ProposalDecision
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 ProposalDecision
impl Debug for ProposalDecision
Source§impl Hash for ProposalDecision
impl Hash for ProposalDecision
Source§impl PartialEq for ProposalDecision
impl PartialEq for ProposalDecision
Source§fn eq(&self, other: &ProposalDecision) -> bool
fn eq(&self, other: &ProposalDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProposalDecision
impl Eq for ProposalDecision
impl StructuralPartialEq for ProposalDecision
Auto Trait Implementations§
impl Freeze for ProposalDecision
impl RefUnwindSafe for ProposalDecision
impl Send for ProposalDecision
impl Sync for ProposalDecision
impl Unpin for ProposalDecision
impl UnsafeUnpin for ProposalDecision
impl UnwindSafe for ProposalDecision
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