pub struct Ask {
pub kind: AdviserAsk,
pub subject: String,
pub options: Vec<String>,
pub material: Option<String>,
}Expand description
One question, spelled for the adviser.
material is the text under judgement — a tool result about to be
packaged — and options is non-empty only for a Choice. The two
are fields of the question rather than a second argument, so a caller
cannot pair a Choice with material or a density score with options.
Fields§
§kind: AdviserAsk§subject: String§options: Vec<String>§material: Option<String>Implementations§
Source§impl Ask
impl Ask
Sourcepub fn noul(subject: impl Into<String>, material: impl Into<String>) -> Ask
pub fn noul(subject: impl Into<String>, material: impl Into<String>) -> Ask
“Is this still needed?” about one item on its way into the window.
Trait Implementations§
impl Eq for Ask
impl StructuralPartialEq for Ask
Auto Trait Implementations§
impl Freeze for Ask
impl RefUnwindSafe for Ask
impl Send for Ask
impl Sync for Ask
impl Unpin for Ask
impl UnsafeUnpin for Ask
impl UnwindSafe for Ask
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