#[non_exhaustive]pub struct DefaultPool {
pub service_account: String,
pub artifact_storage: String,
/* private fields */
}
Expand description
Execution using the default Cloud Build pool.
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.service_account: String
Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
artifact_storage: String
Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket (“gs://my-bucket”) or a path within a bucket (“gs://my-bucket/my-dir”). If unspecified, a default bucket located in the same region will be used.
Implementations§
Source§impl DefaultPool
impl DefaultPool
pub fn new() -> Self
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_artifact_storage<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_storage<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_storage.
Trait Implementations§
Source§impl Clone for DefaultPool
impl Clone for DefaultPool
Source§fn clone(&self) -> DefaultPool
fn clone(&self) -> DefaultPool
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 DefaultPool
impl Debug for DefaultPool
Source§impl Default for DefaultPool
impl Default for DefaultPool
Source§fn default() -> DefaultPool
fn default() -> DefaultPool
Returns the “default value” for a type. Read more
Source§impl Message for DefaultPool
impl Message for DefaultPool
Source§impl PartialEq for DefaultPool
impl PartialEq for DefaultPool
impl StructuralPartialEq for DefaultPool
Auto Trait Implementations§
impl Freeze for DefaultPool
impl RefUnwindSafe for DefaultPool
impl Send for DefaultPool
impl Sync for DefaultPool
impl Unpin for DefaultPool
impl UnwindSafe for DefaultPool
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