pub struct Completion { /* private fields */ }Expand description
Completion values. Results longer than MAX_COMPLETION_VALUES are
truncated, with total and hasMore set accordingly.
Implementations§
Source§impl Completion
impl Completion
Sourcepub fn filter_prefix(candidates: &[&str], prefix: &str) -> Self
pub fn filter_prefix(candidates: &[&str], prefix: &str) -> Self
The values of candidates that start with prefix, ignoring ASCII
case.
Sourcepub fn with_total(self, total: u64) -> Self
pub fn with_total(self, total: u64) -> Self
Sets the total number of matches, when known.
Trait Implementations§
Source§impl Clone for Completion
impl Clone for Completion
Source§impl Debug for Completion
impl Debug for Completion
Source§impl Default for Completion
impl Default for Completion
impl Eq for Completion
Source§impl<S: Into<String>> FromIterator<S> for Completion
impl<S: Into<String>> FromIterator<S> for Completion
Source§fn from_iter<I: IntoIterator<Item = S>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = S>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for Completion
impl PartialEq 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 UnsafeUnpin 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