pub struct Proposal {
pub kind: String,
pub title: String,
pub fields: ProposalFields,
pub runnable: Option<Runnable>,
pub input: Option<String>,
pub blocked: Option<String>,
pub command: String,
pub conversation: Option<String>,
pub turn: Option<u32>,
}Expand description
A change the model suggests, as code made it a person’s action.
Fields§
§kind: Stringquick_change, bug_fix, nudge, answer or start_spec.
title: StringOne line.
fields: ProposalFieldsThe editable words, by kind.
runnable: Option<Runnable>What confirming performs; None when it cannot be done now.
input: Option<String>The words the action records (the input of a nudge or an answer).
blocked: Option<String>Why it cannot be done now.
command: StringThe same action as a command.
conversation: Option<String>The conversation that suggested it.
turn: Option<u32>The turn that suggested it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
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 Proposal
Source§impl JsonSchema for Proposal
impl JsonSchema for Proposal
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnsafeUnpin for Proposal
impl UnwindSafe for Proposal
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