#[non_exhaustive]pub struct StorageSource {
pub bucket: String,
pub object: String,
pub generation: i64,
pub source_fetcher: SourceFetcher,
/* private fields */
}Expand description
Location of the source in an archive file in 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: StringCloud Storage bucket containing the source (see Bucket Name Requirements).
object: StringRequired. Cloud Storage object containing the source.
This object must be a zipped (.zip) or gzipped archive file (.tar.gz)
containing source to build.
generation: i64Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
source_fetcher: SourceFetcherOptional. Option to specify the tool to fetch the source file for the build.
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
Sourcepub fn set_object<T: Into<String>>(self, v: T) -> Self
pub fn set_object<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_generation<T: Into<i64>>(self, v: T) -> Self
pub fn set_generation<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_source_fetcher<T: Into<SourceFetcher>>(self, v: T) -> Self
pub fn set_source_fetcher<T: Into<SourceFetcher>>(self, v: T) -> Self
Sets the value of source_fetcher.
§Example
ⓘ
use google_cloud_build_v1::model::storage_source::SourceFetcher;
let x0 = StorageSource::new().set_source_fetcher(SourceFetcher::Gsutil);
let x1 = StorageSource::new().set_source_fetcher(SourceFetcher::GcsFetcher);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