pub struct MetadataBuilder { /* private fields */ }
Expand description

Builder for immutable Metadata.

Implementations

Create a builder with empty initial capacity.

Create a builder with the given value.

Add a metadata holding an ASCII value.

key must not use suffix (-bin) indicating a binary valued metadata entry.

Add a metadata holding a binary value.

key needs to have suffix (-bin) indicating a binary valued metadata entry.

Create Metadata with configured entries.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.