Struct biscuit::Compact [] [src]

pub struct Compact {
    pub parts: Vec<Base64Url>,
}

A collection of CompactParts that have been converted to Base64Url

Fields

Parts of the compact representation

Methods

impl Compact
[src]

Create an empty struct

Create an empty struct with some expected capacity

Push a CompactPart to the end

Returns the number of parts

Returns whether there are no parts

Encodes the various parts into Base64 URL encoding and then concatenates them with period '.' This corresponds to the various Compact representation in JWE and JWS, for example

Convenience function to split an encoded compact representation into a list of Base64Url.

Convenience function to retrieve a part at a certain index and decode into the type desired

Alias of encode

Trait Implementations

impl Debug for Compact
[src]

Formats the value using the given formatter.

impl Eq for Compact
[src]

impl PartialEq for Compact
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Compact
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Compact
[src]

Returns the "default value" for a type. Read more

impl Serialize for Compact
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Compact
[src]

Deserialize this value from the given Serde deserializer. Read more