pub struct CatchAllKey<'a> {
pub value: Option<Cow<'a, str>>,
}Expand description
The catch-all key. Its value lets other formats keep an identifier; it
is always None from MF2 syntax, where the key is written *.
Fields§
§value: Option<Cow<'a, str>>An identifier kept from another format, if any.
Implementations§
Source§impl CatchAllKey<'_>
impl CatchAllKey<'_>
Sourcepub fn into_owned(self) -> CatchAllKey<'static>
pub fn into_owned(self) -> CatchAllKey<'static>
The same key with every string owned.
Trait Implementations§
Source§impl<'a> Clone for CatchAllKey<'a>
impl<'a> Clone for CatchAllKey<'a>
Source§impl<'a> Debug for CatchAllKey<'a>
impl<'a> Debug for CatchAllKey<'a>
Source§impl<'a> Default for CatchAllKey<'a>
impl<'a> Default for CatchAllKey<'a>
impl<'a> Eq for CatchAllKey<'a>
Source§impl<'a> Hash for CatchAllKey<'a>
impl<'a> Hash for CatchAllKey<'a>
Source§impl<'a> PartialEq for CatchAllKey<'a>
impl<'a> PartialEq for CatchAllKey<'a>
Source§impl Serialize for CatchAllKey<'_>
Available on crate feature serde only.
impl Serialize for CatchAllKey<'_>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for CatchAllKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for CatchAllKey<'a>
impl<'a> RefUnwindSafe for CatchAllKey<'a>
impl<'a> Send for CatchAllKey<'a>
impl<'a> Sync for CatchAllKey<'a>
impl<'a> Unpin for CatchAllKey<'a>
impl<'a> UnsafeUnpin for CatchAllKey<'a>
impl<'a> UnwindSafe for CatchAllKey<'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