#[non_exhaustive]pub struct StorageSource {
pub bucket: String,
pub object: String,
pub generation: i64,
pub source_upload_url: String,
/* private fields */
}
Expand description
Location of the source in an archive file in Google Cloud Storage.
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.bucket: String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
object: String
Google Cloud Storage object containing the source.
This object must be a gzipped archive file (.tar.gz
) containing source to
build.
generation: i64
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
source_upload_url: String
When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
Implementations§
Source§impl StorageSource
impl StorageSource
pub fn new() -> Self
Sourcepub fn set_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of bucket.
Sourcepub fn set_object<T: Into<String>>(self, v: T) -> Self
pub fn set_object<T: Into<String>>(self, v: T) -> Self
Sets the value of object.
Sourcepub fn set_generation<T: Into<i64>>(self, v: T) -> Self
pub fn set_generation<T: Into<i64>>(self, v: T) -> Self
Sets the value of generation.
Sourcepub fn set_source_upload_url<T: Into<String>>(self, v: T) -> Self
pub fn set_source_upload_url<T: Into<String>>(self, v: T) -> Self
Sets the value of source_upload_url.
Trait Implementations§
Source§impl Clone for StorageSource
impl Clone for StorageSource
Source§fn clone(&self) -> StorageSource
fn clone(&self) -> StorageSource
Returns a duplicate of the value. Read more
1.0.0 · 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 StorageSource
impl Debug for StorageSource
Source§impl Default for StorageSource
impl Default for StorageSource
Source§fn default() -> StorageSource
fn default() -> StorageSource
Returns the “default value” for a type. Read more
Source§impl Message for StorageSource
impl Message for StorageSource
Source§impl PartialEq for StorageSource
impl PartialEq for StorageSource
impl StructuralPartialEq for StorageSource
Auto Trait Implementations§
impl Freeze for StorageSource
impl RefUnwindSafe for StorageSource
impl Send for StorageSource
impl Sync for StorageSource
impl Unpin for StorageSource
impl UnwindSafe for StorageSource
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