#[non_exhaustive]pub struct GenerateUploadUrlResponse {
pub upload_url: String,
pub storage_source: Option<StorageSource>,
/* private fields */
}
Expand description
Response of GenerateSourceUploadUrl
method.
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.upload_url: String
The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.
storage_source: Option<StorageSource>
The location of the source code in the upload bucket.
Once the archive is uploaded using the upload_url
use this field to
set the function.build_config.source.storage_source
during CreateFunction and UpdateFunction.
Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.
Implementations§
Source§impl GenerateUploadUrlResponse
impl GenerateUploadUrlResponse
pub fn new() -> Self
Sourcepub fn set_upload_url<T: Into<String>>(self, v: T) -> Self
pub fn set_upload_url<T: Into<String>>(self, v: T) -> Self
Sets the value of upload_url.
Sourcepub fn set_storage_source<T>(self, v: T) -> Selfwhere
T: Into<StorageSource>,
pub fn set_storage_source<T>(self, v: T) -> Selfwhere
T: Into<StorageSource>,
Sets the value of storage_source.
Sourcepub fn set_or_clear_storage_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<StorageSource>,
pub fn set_or_clear_storage_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<StorageSource>,
Sets or clears the value of storage_source.
Trait Implementations§
Source§impl Clone for GenerateUploadUrlResponse
impl Clone for GenerateUploadUrlResponse
Source§fn clone(&self) -> GenerateUploadUrlResponse
fn clone(&self) -> GenerateUploadUrlResponse
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 GenerateUploadUrlResponse
impl Debug for GenerateUploadUrlResponse
Source§impl Default for GenerateUploadUrlResponse
impl Default for GenerateUploadUrlResponse
Source§fn default() -> GenerateUploadUrlResponse
fn default() -> GenerateUploadUrlResponse
Returns the “default value” for a type. Read more
Source§impl Message for GenerateUploadUrlResponse
impl Message for GenerateUploadUrlResponse
impl StructuralPartialEq for GenerateUploadUrlResponse
Auto Trait Implementations§
impl Freeze for GenerateUploadUrlResponse
impl RefUnwindSafe for GenerateUploadUrlResponse
impl Send for GenerateUploadUrlResponse
impl Sync for GenerateUploadUrlResponse
impl Unpin for GenerateUploadUrlResponse
impl UnwindSafe for GenerateUploadUrlResponse
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