pub struct SerializedBiscuit {
    pub root_key_id: Option<u32>,
    pub authority: Block,
    pub blocks: Vec<Block>,
    pub proof: TokenNext,
}
Expand description

Intermediate structure for token serialization

This structure contains the blocks serialized to byte arrays. Those arrays will be used for the signature

Fields

root_key_id: Option<u32>authority: Blockblocks: Vec<Block>proof: TokenNext

Implementations

serializes the token

serializes the token

creates a new token

adds a new block, serializes it and sign a new token

checks the signature on a deserialized token

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.