#[non_exhaustive]pub struct BitbucketCloudConfig {
pub workspace: String,
pub webhook_secret_secret_version: String,
pub read_authorizer_credential: Option<UserCredential>,
pub authorizer_credential: Option<UserCredential>,
/* private fields */
}Expand description
Configuration for connections to Bitbucket Cloud.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workspace: StringRequired. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
webhook_secret_secret_version: StringRequired. SecretManager resource containing the webhook secret used to
verify webhook events, formatted as projects/*/secrets/*/versions/*.
Required. An access token with the repository access. It can be either a
workspace, project or repository access token. It’s recommended to use a
system account to generate the credentials.
Required. An access token with the webhook, repository,
repository:admin and pullrequest scope access. It can be either a
workspace, project or repository access token. It’s recommended to use a
system account to generate these credentials.
Implementations§
Source§impl BitbucketCloudConfig
impl BitbucketCloudConfig
pub fn new() -> Self
Sourcepub fn set_workspace<T: Into<String>>(self, v: T) -> Self
pub fn set_workspace<T: Into<String>>(self, v: T) -> Self
Sets the value of workspace.
Sourcepub fn set_webhook_secret_secret_version<T: Into<String>>(self, v: T) -> Self
pub fn set_webhook_secret_secret_version<T: Into<String>>(self, v: T) -> Self
Sets the value of webhook_secret_secret_version.
Sets the value of read_authorizer_credential.
Sets or clears the value of read_authorizer_credential.
Sets the value of authorizer_credential.
Sets or clears the value of authorizer_credential.
Trait Implementations§
Source§impl Clone for BitbucketCloudConfig
impl Clone for BitbucketCloudConfig
Source§fn clone(&self) -> BitbucketCloudConfig
fn clone(&self) -> BitbucketCloudConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more