#[non_exhaustive]pub struct PutFromUrlInput {
pub url: String,
pub prefix: String,
pub filename: Option<String>,
}Expand description
Input for Storage::put_from_url() and Storage::put_from_url_with().
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: StringSource URL to fetch from (must be http or https).
prefix: StringStorage prefix (e.g., "avatars/").
filename: Option<String>Optional filename hint — used to extract extension. None produces extensionless keys.
Implementations§
Auto Trait Implementations§
impl Freeze for PutFromUrlInput
impl RefUnwindSafe for PutFromUrlInput
impl Send for PutFromUrlInput
impl Sync for PutFromUrlInput
impl Unpin for PutFromUrlInput
impl UnsafeUnpin for PutFromUrlInput
impl UnwindSafe for PutFromUrlInput
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