#[non_exhaustive]pub struct PrivatePool {
pub worker_pool: String,
pub service_account: String,
pub artifact_storage: String,
/* private fields */
}
Expand description
Execution using a private 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.worker_pool: String
Required. Resource name of the Cloud Build worker pool to use. The format
is projects/{project}/locations/{location}/workerPools/{pool}
.
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 PrivatePool
impl PrivatePool
pub fn new() -> Self
Sourcepub fn set_worker_pool<T: Into<String>>(self, v: T) -> Self
pub fn set_worker_pool<T: Into<String>>(self, v: T) -> Self
Sets the value of worker_pool.
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 PrivatePool
impl Clone for PrivatePool
Source§fn clone(&self) -> PrivatePool
fn clone(&self) -> PrivatePool
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 PrivatePool
impl Debug for PrivatePool
Source§impl Default for PrivatePool
impl Default for PrivatePool
Source§fn default() -> PrivatePool
fn default() -> PrivatePool
Returns the “default value” for a type. Read more
Source§impl Message for PrivatePool
impl Message for PrivatePool
Source§impl PartialEq for PrivatePool
impl PartialEq for PrivatePool
impl StructuralPartialEq for PrivatePool
Auto Trait Implementations§
impl Freeze for PrivatePool
impl RefUnwindSafe for PrivatePool
impl Send for PrivatePool
impl Sync for PrivatePool
impl Unpin for PrivatePool
impl UnwindSafe for PrivatePool
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