pub struct ProposalV1 {
pub schema: String,
pub number: u64,
pub state: ProposalState,
pub created_at: UtcTimestamp,
pub mine: bool,
pub merged_revision: Option<u64>,
pub draft: DraftProposalV1,
pub decided_by: Option<DecidedByV1>,
}Expand description
Response of GET /v1/vaults/{vault_id}/proposals/{number} (1.6).
Fields§
§schema: String§number: u64§state: ProposalState§created_at: UtcTimestamp§mine: boolWhether this instance sent it.
merged_revision: Option<u64>Revision the merge produced, when merged.
draft: DraftProposalV1The draft exactly as its engine sent it.
decided_by: Option<DecidedByV1>1.9 (section 7): who merged or rejected it, a person or the auto-merge threshold.
Implementations§
Source§impl ProposalV1
impl ProposalV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ProposalV1
impl Clone for ProposalV1
Source§impl Debug for ProposalV1
impl Debug for ProposalV1
Source§impl<'de> Deserialize<'de> for ProposalV1
impl<'de> Deserialize<'de> for ProposalV1
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 ProposalV1
Source§impl PartialEq for ProposalV1
impl PartialEq for ProposalV1
Source§impl Serialize for ProposalV1
impl Serialize for ProposalV1
impl StructuralPartialEq for ProposalV1
Auto Trait Implementations§
impl Freeze for ProposalV1
impl RefUnwindSafe for ProposalV1
impl Send for ProposalV1
impl Sync for ProposalV1
impl Unpin for ProposalV1
impl UnsafeUnpin for ProposalV1
impl UnwindSafe for ProposalV1
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