pub enum BareItem<'a> {
Integer(i64),
Decimal(Decimal),
String(SfString<'a>),
Token(&'a str),
ByteSeq(ByteSeq<'a>),
Boolean(bool),
Date(i64),
DisplayString(DisplayString<'a>),
}Expand description
A bare item (RFC 9651 section 3.3).
Variants§
Integer(i64)
An Integer, at most 15 digits.
Decimal(Decimal)
A Decimal, in thousandths.
String(SfString<'a>)
A String.
Token(&'a str)
A Token (ASCII by construction).
ByteSeq(ByteSeq<'a>)
A Byte Sequence, still base64.
Boolean(bool)
A Boolean.
Date(i64)
A Date: seconds since the Unix epoch, within years 1 to 9999.
DisplayString(DisplayString<'a>)
A Display String, still percent-encoded.
Trait Implementations§
impl<'a> Copy for BareItem<'a>
impl<'a> Eq for BareItem<'a>
impl<'a> StructuralPartialEq for BareItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for BareItem<'a>
impl<'a> RefUnwindSafe for BareItem<'a>
impl<'a> Send for BareItem<'a>
impl<'a> Sync for BareItem<'a>
impl<'a> Unpin for BareItem<'a>
impl<'a> UnsafeUnpin for BareItem<'a>
impl<'a> UnwindSafe for BareItem<'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