#[non_exhaustive]pub struct ZipInfo {
pub source_url: String,
pub files_count: i32,
/* private fields */
}Expand description
The zip file information for a zip deployment.
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 of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form ‘http(s)://storage.googleapis.com/<bucket>/<object>’.
files_count: i32An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
Implementations§
Source§impl ZipInfo
impl ZipInfo
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_files_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_files_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of files_count.
Trait Implementations§
impl StructuralPartialEq for ZipInfo
Auto Trait Implementations§
impl Freeze for ZipInfo
impl RefUnwindSafe for ZipInfo
impl Send for ZipInfo
impl Sync for ZipInfo
impl Unpin for ZipInfo
impl UnwindSafe for ZipInfo
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