pub struct UploadImageInput {
pub file_path: Option<String>,
pub url: Option<String>,
pub name: Option<String>,
}Expand description
Input for uploading an image asset.
Fields§
§file_path: Option<String>Local file path to the image.
url: Option<String>Remote URL of the image to import.
name: Option<String>Optional display name for the asset.
Trait Implementations§
Source§impl Clone for UploadImageInput
impl Clone for UploadImageInput
Source§fn clone(&self) -> UploadImageInput
fn clone(&self) -> UploadImageInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadImageInput
impl Debug for UploadImageInput
Source§impl Default for UploadImageInput
impl Default for UploadImageInput
Source§fn default() -> UploadImageInput
fn default() -> UploadImageInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UploadImageInput
impl<'de> Deserialize<'de> for UploadImageInput
Source§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
Auto Trait Implementations§
impl Freeze for UploadImageInput
impl RefUnwindSafe for UploadImageInput
impl Send for UploadImageInput
impl Sync for UploadImageInput
impl Unpin for UploadImageInput
impl UnsafeUnpin for UploadImageInput
impl UnwindSafe for UploadImageInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more