pub struct AcceptanceProposal {
pub proposal_id: ProposalId,
pub issue_id: IssueId,
pub acceptance: Acceptance,
pub rationale: String,
pub proposed_by: String,
pub created_at: u64,
}Expand description
A proposed acceptance for an issue, awaiting a human verdict.
Fields§
§proposal_id: ProposalId§issue_id: IssueId§acceptance: Acceptance§rationale: StringWhy this acceptance captures the issue — the agent’s case to the human arbiter. Not part of the identity.
proposed_by: StringWho proposed it (an agent/model name, or a person). Not part of the identity.
created_at: u64Implementations§
Source§impl AcceptanceProposal
impl AcceptanceProposal
pub fn new( issue_id: impl Into<IssueId>, acceptance: Acceptance, rationale: impl Into<String>, proposed_by: impl Into<String>, ) -> Self
pub fn with_timestamp( issue_id: impl Into<IssueId>, acceptance: Acceptance, rationale: impl Into<String>, proposed_by: impl Into<String>, created_at: u64, ) -> Self
pub fn id_is_consistent(&self) -> bool
Trait Implementations§
Source§impl Clone for AcceptanceProposal
impl Clone for AcceptanceProposal
Source§impl Debug for AcceptanceProposal
impl Debug for AcceptanceProposal
Source§impl<'de> Deserialize<'de> for AcceptanceProposal
impl<'de> Deserialize<'de> for AcceptanceProposal
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 AcceptanceProposal
Source§impl PartialEq for AcceptanceProposal
impl PartialEq for AcceptanceProposal
Source§impl Serialize for AcceptanceProposal
impl Serialize for AcceptanceProposal
impl StructuralPartialEq for AcceptanceProposal
Auto Trait Implementations§
impl Freeze for AcceptanceProposal
impl RefUnwindSafe for AcceptanceProposal
impl Send for AcceptanceProposal
impl Sync for AcceptanceProposal
impl Unpin for AcceptanceProposal
impl UnsafeUnpin for AcceptanceProposal
impl UnwindSafe for AcceptanceProposal
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.