pub struct Proposal {
pub label: String,
pub kind: ProposalKind,
}Expand description
A vetted proposal. Only vet builds one from untrusted args.
Fields§
§label: String§kind: ProposalKindImplementations§
Source§impl Proposal
impl Proposal
Sourcepub fn restart(label: impl Into<String>) -> Self
pub fn restart(label: impl Into<String>) -> Self
Restart proposal with a caller-supplied label — for murmur’s own hints
(the RESTART_HINT sites), which are trusted, not model output.
Sourcepub fn reply(text: impl Into<String>) -> Self
pub fn reply(text: impl Into<String>) -> Self
A suggested reply shown as the composer’s ghost text. Insert-only.
Sourcepub fn restart_command(agent: &str) -> String
pub fn restart_command(agent: &str) -> String
The shell command a restart chip stands for, for agent.
Sourcepub fn insert_text(&self, agent: &str) -> String
pub fn insert_text(&self, agent: &str) -> String
Text Tab puts into an empty composer. agent is the proposing
agent, which only Restart needs (principle C: the user sees the
exact command before it runs).
Trait Implementations§
impl Eq for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Forget for Proposal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.