Struct fluvio_smartstream::RecordData[][src]

pub struct RecordData(_);
Expand description

A type containing the data contents of a Record.

The RecordData type provides useful conversions for constructing it from any type that may convert into a Vec<u8>. This is the basis for flexible APIs that allow users to supply various different argument types as record contents. See the Producer API as an example.

Implementations

Check if value is binary content

Describe value - return text, binary, or 0 bytes

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

decode Kafka compliant protocol values from buf

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

size of this object in bytes

encoding contents for buffer

Performs the conversion.

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

This method tests for !=.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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)

recently added

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

Converts the given value to a String. 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.