Struct backend::models::storage::SaveImage [−][src]
pub struct SaveImage {
pub content_type: ImageContentType,
pub content: Vec<u8>,
}
Expand description
Request guard for save image
Fields
content_type
: String, the converted content type of the imagecontent
: Vec, the content of the image
Fields
content_type: ImageContentType
content: Vec<u8>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Error = ImageError
type Error = ImageError
The associated error to be returned when the guard fails.
Asynchronously validates, parses, and converts an instance of Self
from the incoming request body data. Read more
Auto Trait Implementations
impl RefUnwindSafe for SaveImage
impl UnwindSafe for SaveImage
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
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