Struct biscuit_auth::UnverifiedBiscuit[][src]

pub struct UnverifiedBiscuit { /* fields omitted */ }

Implementations

adds a new block to the token

since the public key is integrated into the token, the keypair can be discarded right after calling this function

serializes the token

serializes the token and encode it to a (URL safe) base64 string

creates a new block builder

deserializes a token and validates the signature using the root public key, with a custom symbol table

adds a new block to the token, using the provided CSPRNG

since the public key is integrated into the token, the keypair can be discarded right after calling this function

returns a list of revocation identifiers for each block, in order

if a token is generated with the same keys and the same content, those identifiers will stay the same

returns the number of blocks (at least 1)

prints the content of a block as Datalog source code

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.