#[non_exhaustive]pub struct FileInfo {
pub source_url: String,
pub sha1_sum: String,
pub mime_type: String,
/* private fields */
}Expand description
Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
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.source_url: StringURL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form ‘http(s)://storage.googleapis.com/<bucket>/<object>’.
sha1_sum: StringThe SHA1 hash of the file, in hex.
mime_type: StringThe MIME type of the file.
Defaults to the value from Google Cloud Storage.
Implementations§
Source§impl FileInfo
impl FileInfo
pub fn new() -> Self
Sourcepub fn set_source_url<T: Into<String>>(self, v: T) -> Self
pub fn set_source_url<T: Into<String>>(self, v: T) -> Self
Sets the value of source_url.
Sourcepub fn set_sha1_sum<T: Into<String>>(self, v: T) -> Self
pub fn set_sha1_sum<T: Into<String>>(self, v: T) -> Self
Sets the value of sha1_sum.
Sourcepub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
pub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
Sets the value of mime_type.
Trait Implementations§
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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