[][src]Struct t_rust_less_lib::api::SecretEntryMatch

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>,
}

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: SecretEntryname_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

tags_highlights: Vec<usize>

Array of matching tags

Implementations

impl SecretEntryMatch[src]

pub fn from_reader(reader: Reader<'_>) -> Result<Self>[src]

pub fn to_builder(&self, builder: Builder<'_>)[src]

Trait Implementations

impl Clone for SecretEntryMatch[src]

impl Debug for SecretEntryMatch[src]

impl<'de> Deserialize<'de> for SecretEntryMatch[src]

impl Drop for SecretEntryMatch[src]

impl Eq for SecretEntryMatch[src]

impl Ord for SecretEntryMatch[src]

impl PartialEq<SecretEntryMatch> for SecretEntryMatch[src]

impl PartialOrd<SecretEntryMatch> for SecretEntryMatch[src]

impl Serialize for SecretEntryMatch[src]

impl StructuralEq for SecretEntryMatch[src]

impl Zeroize for SecretEntryMatch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]