pub enum ProposalDecision {
Approve,
Reject,
Comment,
RequestChanges,
}Expand description
A reviewer’s decision on a proposal.
Variants§
Approve
The reviewer approved the proposal for application.
Reject
The reviewer rejected the proposal; it will not be applied.
Comment
The reviewer left a comment without blocking the proposal.
RequestChanges
The reviewer requested changes before the proposal can proceed.
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 moreimpl Copy for ProposalDecision
Source§impl Debug for ProposalDecision
impl Debug for ProposalDecision
impl Eq 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 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