pub struct Context {
pub rationale: String,
pub triggered_by: Option<String>,
pub derived_from: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Context fields on a proposal. Open shape; rationale is required.
Fields§
§rationale: StringHuman-readable explanation of why this plan was proposed.
triggered_by: Option<String>Optional reference to upstream cause.
derived_from: Option<String>If this is a re-proposal, the previous proposal_id. Also the carrier
of the v0.8 negotiation idiom (SPEC §5.5): a proposal submitted in
response to a guided deny references the original here.
extra: HashMap<String, Value>Host-specific extensions (use namespaced keys).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Context
impl<'de> Deserialize<'de> for Context
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
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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