pub struct TagKey<'a> {
pub key: &'a str,
pub has_value: bool,
}Expand description
The key of a tag, as the intake stores it.
Fields§
§key: &'a strThe normalized key: the normalized tag up to its first :, or the whole normalized tag when it has none.
has_value: boolWhether the normalized tag contains a :, and so has a value.
When true, the first : of the normalized tag comes from the first : of the raw tag, so the raw tag’s value
is everything after its first :. When false, the intake stores a bare tag, even if the raw tag has a : that
was cut off by the length limit.
Trait Implementations§
impl<'a> Copy for TagKey<'a>
impl<'a> Eq for TagKey<'a>
impl<'a> StructuralPartialEq for TagKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for TagKey<'a>
impl<'a> RefUnwindSafe for TagKey<'a>
impl<'a> Send for TagKey<'a>
impl<'a> Sync for TagKey<'a>
impl<'a> Unpin for TagKey<'a>
impl<'a> UnsafeUnpin for TagKey<'a>
impl<'a> UnwindSafe for TagKey<'a>
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