Struct t_rust_less_lib::api::SecretEntryMatch [−][src]
pub struct SecretEntryMatch { pub entry: SecretEntry, pub name_score: isize, pub name_highlights: Vec<usize>, pub url_highlights: Vec<usize>, pub tags_highlights: Vec<usize>, }
Expand description
Representation of a filter match to a SecretEntry.
For the most part this is just the entry itself with some additional information which parts should be highlighted in the UI
Fields
entry: SecretEntry
name_score: isize
Matching score of the name
name_highlights: Vec<usize>
Array of positions (single chars) to highlight in the name of the entry
url_highlights: Vec<usize>
Array of matching urls
Array of matching tags
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SecretEntryMatch
impl Send for SecretEntryMatch
impl Sync for SecretEntryMatch
impl Unpin for SecretEntryMatch
impl UnwindSafe for SecretEntryMatch
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self