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 is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
Whether Enter may run this proposal. Only native actions qualify;
insert-only kinds never run on a single key (spec principle C).
Sourcepub fn insert_text(&self) -> Option<String>
pub fn insert_text(&self) -> Option<String>
Text Tab puts into an empty composer, or None for executable kinds.
Trait Implementations§
impl Eq for Proposal
impl 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
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.