pub struct Entry<'p, 'u> {
pub medium: &'p str,
pub source: &'p str,
pub domain: &'u str,
pub search_term: Option<Cow<'u, str>>,
}Expand description
A matched referer entry.
Borrows from two sources:
'p: theParser(formediumandsource)'u: theUrlpassed toParser::lookup(fordomainandsearch_term)
No heap allocation occurs unless percent-decoding is needed for search_term.
Fields§
§medium: &'p str§source: &'p str§domain: &'u str§search_term: Option<Cow<'u, str>>Auto Trait Implementations§
impl<'p, 'u> Freeze for Entry<'p, 'u>
impl<'p, 'u> RefUnwindSafe for Entry<'p, 'u>
impl<'p, 'u> Send for Entry<'p, 'u>
impl<'p, 'u> Sync for Entry<'p, 'u>
impl<'p, 'u> Unpin for Entry<'p, 'u>
impl<'p, 'u> UnwindSafe for Entry<'p, 'u>
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