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]

[src]

Create an empty struct

[src]

Create an empty struct with some expected capacity

[src]

Push a CompactPart to the end

[src]

Returns the number of parts

[src]

Returns whether there are no parts

[src]

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

[src]

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

[src]

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

[src]

Alias of encode

Trait Implementations

impl Debug for Compact
[src]

[src]

Formats the value using the given formatter.

impl Eq for Compact
[src]

impl PartialEq for Compact
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Compact
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Compact
[src]

[src]

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

impl Serialize for Compact
[src]

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more