pub struct DraftProposalV1 {
pub schema: String,
pub state: ProposalState,
pub summary: Option<String>,
pub body: Option<String>,
pub sources: Vec<String>,
pub context_patch: ContextPatchV1,
pub session_ref: String,
pub engine_screening: EngineScreeningV1,
pub origin: Option<DraftOrigin>,
}Expand description
POST /v1/vaults/{vault_id}/proposals: a draft from one session.
Fields§
§schema: String§state: ProposalStateAlways draft; review in Hive moves it on.
summary: Option<String>One line for reviewers; required in the clear. 1.5: absent for sealed vaults, where nothing readable leaves the engine (the real summary is inside the sealed patch; Hive shows a placeholder).
body: Option<String>Reviewer notes; absent for sealed vaults.
sources: Vec<String>Source references; empty for sealed vaults.
context_patch: ContextPatchV1§session_ref: StringOpaque, per-session id (no host or user data).
engine_screening: EngineScreeningV1§origin: Option<DraftOrigin>1.9: where the draft comes from; absent means learned. Always in
the clear, sealed vaults included.
Implementations§
Source§impl DraftProposalV1
impl DraftProposalV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for DraftProposalV1
impl Clone for DraftProposalV1
Source§impl Debug for DraftProposalV1
impl Debug for DraftProposalV1
Source§impl<'de> Deserialize<'de> for DraftProposalV1
impl<'de> Deserialize<'de> for DraftProposalV1
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 DraftProposalV1
Source§impl PartialEq for DraftProposalV1
impl PartialEq for DraftProposalV1
Source§impl Serialize for DraftProposalV1
impl Serialize for DraftProposalV1
impl StructuralPartialEq for DraftProposalV1
Auto Trait Implementations§
impl Freeze for DraftProposalV1
impl RefUnwindSafe for DraftProposalV1
impl Send for DraftProposalV1
impl Sync for DraftProposalV1
impl Unpin for DraftProposalV1
impl UnsafeUnpin for DraftProposalV1
impl UnwindSafe for DraftProposalV1
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