pub struct UrlCompletion {
pub value: String,
pub label: Option<String>,
pub description: Option<String>,
}Expand description
Auto-completion entry returned by a handler.
Fields§
§value: StringCompletion text to insert.
label: Option<String>Short label for the completion menu.
description: Option<String>Longer description shown alongside the label.
Trait Implementations§
Source§impl Clone for UrlCompletion
impl Clone for UrlCompletion
Source§fn clone(&self) -> UrlCompletion
fn clone(&self) -> UrlCompletion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UrlCompletion
impl Debug for UrlCompletion
Source§impl<'de> Deserialize<'de> for UrlCompletion
impl<'de> Deserialize<'de> for UrlCompletion
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
Auto Trait Implementations§
impl Freeze for UrlCompletion
impl RefUnwindSafe for UrlCompletion
impl Send for UrlCompletion
impl Sync for UrlCompletion
impl Unpin for UrlCompletion
impl UnsafeUnpin for UrlCompletion
impl UnwindSafe for UrlCompletion
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