pub struct RungSuggestion {
pub rung: RungPick,
pub available: bool,
pub cue: RungCue,
pub reason: String,
pub alternatives: Vec<RungPick>,
pub command: Option<String>,
}Expand description
The composer’s suggestion for a text (rung_suggestion): computed by
code from the text alone, shown with its reason, never applied without
the person’s key or click.
Fields§
§rung: RungPickThe suggested rung.
available: boolWhether this build has it (false for ask until the Ask panel).
cue: RungCueWhat decided it.
reason: StringWhy, in one sentence.
alternatives: Vec<RungPick>The other rungs, in the composer’s order.
command: Option<String>The command that takes the suggested rung (none for ask and none).
Trait Implementations§
Source§impl Clone for RungSuggestion
impl Clone for RungSuggestion
Source§impl Debug for RungSuggestion
impl Debug for RungSuggestion
Source§impl<'de> Deserialize<'de> for RungSuggestion
impl<'de> Deserialize<'de> for RungSuggestion
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 RungSuggestion
Source§impl JsonSchema for RungSuggestion
impl JsonSchema for RungSuggestion
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 moreSource§impl PartialEq for RungSuggestion
impl PartialEq for RungSuggestion
Source§impl Serialize for RungSuggestion
impl Serialize for RungSuggestion
impl StructuralPartialEq for RungSuggestion
Auto Trait Implementations§
impl Freeze for RungSuggestion
impl RefUnwindSafe for RungSuggestion
impl Send for RungSuggestion
impl Sync for RungSuggestion
impl Unpin for RungSuggestion
impl UnsafeUnpin for RungSuggestion
impl UnwindSafe for RungSuggestion
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