Struct async_graphql::types::UploadValue[][src]

pub struct UploadValue {
    pub filename: String,
    pub content_type: Option<String>,
    pub content: File,
}
Expand description

A file upload value.

Fields

filename: String

The name of the file.

content_type: Option<String>

The content type of the file.

content: File

The file data.

Implementations

Attempt to clone the upload value. This type’s Clone implementation simply calls this and panics on failure.

Errors

Fails if cloning the inner File fails.

Convert to a Read.

Note: this is a synchronous/blocking reader.

This is supported on crate feature unblock only.

Convert to a AsyncRead.

Returns the size of the file, in bytes.

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.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

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.

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more