pub struct Parsed { /* private fields */ }
cookies
only.Expand description
All information parsed.
This information is directly used to construct the final values.
Most users will not need think about this struct in any way. It is public to allow for manual control over values, in the instance that the default parser is insufficient.
Implementations
pub fn parse_item(
&mut self,
input: &'a [u8],
item: &FormatItem<'_>
) -> Result<&'a [u8], ParseFromDescription>
pub fn parse_item(
&mut self,
input: &'a [u8],
item: &FormatItem<'_>
) -> Result<&'a [u8], ParseFromDescription>
Parse a single FormatItem
, mutating the struct. The remaining input is returned as the
Ok
value.
If a FormatItem::Optional
is passed, parsing will not fail; the input will be returned
as-is if the expected format is not present.
pub fn parse_items(
&mut self,
input: &'a [u8],
items: &[FormatItem<'_>]
) -> Result<&'a [u8], ParseFromDescription>
pub fn parse_items(
&mut self,
input: &'a [u8],
items: &[FormatItem<'_>]
) -> Result<&'a [u8], ParseFromDescription>
Parse a sequence of FormatItem
s, mutating the struct. The remaining input is returned as
the Ok
value.
This method will fail if any of the contained FormatItem
s fail to parse. self
will not
be mutated in this instance.
Parse a literal byte sequence. The remaining input is returned as the Ok
value.
Getter methods
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Obtain the named component.
Setter methods
All setters return Option<()>
, which is Some
if the value was set, and None
if not. The
setters may fail if the value is invalid, though behavior is not guaranteed.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Set the named component.
Builder methods
All builder methods return Option<Self>
, which is Some
if the value was set, and None
if
not. The builder methods may fail if the value is invalid, though behavior is not guaranteed.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Set the named component and return self
.
Trait Implementations
type Error = TryFromParsed
type Error = TryFromParsed
The type returned in the event of a conversion error.
pub fn try_from(
parsed: Parsed
) -> Result<PrimitiveDateTime, <PrimitiveDateTime as TryFrom<Parsed>>::Error>
pub fn try_from(
parsed: Parsed
) -> Result<PrimitiveDateTime, <PrimitiveDateTime as TryFrom<Parsed>>::Error>
Performs the conversion.
type Error = TryFromParsed
type Error = TryFromParsed
The type returned in the event of a conversion error.
pub fn try_from(
parsed: Parsed
) -> Result<OffsetDateTime, <OffsetDateTime as TryFrom<Parsed>>::Error>
pub fn try_from(
parsed: Parsed
) -> Result<OffsetDateTime, <OffsetDateTime as TryFrom<Parsed>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Parsed
impl UnwindSafe for Parsed
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more