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: StringThe name of the file.
content_type: Option<String>The content type of the file.
content: FileThe 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.
This is supported on crate feature
unblock only.Convert to a AsyncRead.
Auto Trait Implementations
impl RefUnwindSafe for UploadValue
impl Send for UploadValue
impl Sync for UploadValue
impl Unpin for UploadValue
impl UnwindSafe for UploadValue
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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