pub struct Completion {
pub label: String,
pub range: TextRange,
pub edit: TextEdit,
pub detail: Option<String>,
pub kind: CompletionKind,
}Expand description
An ink! attribute completion item.
Fields§
§label: StringLabel which identifies the completion.
range: TextRangeRange of identifier that is being completed.
edit: TextEditReplacement text for the completion.
detail: Option<String>Descriptive information about the completion.
kind: CompletionKindType of item being completed.
Trait Implementations§
Source§impl Clone for Completion
impl Clone for Completion
Source§fn clone(&self) -> Completion
fn clone(&self) -> Completion
Returns a duplicate of the value. Read more
1.0.0 · 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 Completion
impl Debug for Completion
Source§impl PartialEq for Completion
impl PartialEq for Completion
impl Eq for Completion
impl StructuralPartialEq for Completion
Auto Trait Implementations§
impl Freeze for Completion
impl RefUnwindSafe for Completion
impl Send for Completion
impl Sync for Completion
impl Unpin for Completion
impl UnwindSafe for Completion
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