#[non_exhaustive]pub struct GitRemoteSettings {
pub url: String,
pub default_branch: String,
pub authentication_token_secret_version: String,
pub ssh_authentication_config: Option<SshAuthenticationConfig>,
pub token_status: TokenStatus,
/* private fields */
}Expand description
Controls Git remote configuration for a repository.
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.url: StringRequired. The Git remote’s URL.
default_branch: StringRequired. The Git remote’s default branch name.
authentication_token_secret_version: StringOptional. The name of the Secret Manager secret version to use as an
authentication token for Git operations. Must be in the format
projects/*/secrets/*/versions/*.
ssh_authentication_config: Option<SshAuthenticationConfig>Optional. Authentication fields for remote uris using SSH protocol.
token_status: TokenStatus👎Deprecated
Output only. Deprecated: The field does not contain any token status information.
Implementations§
Source§impl GitRemoteSettings
impl GitRemoteSettings
pub fn new() -> Self
Sourcepub fn set_default_branch<T: Into<String>>(self, v: T) -> Self
pub fn set_default_branch<T: Into<String>>(self, v: T) -> Self
Sets the value of default_branch.
Sourcepub fn set_authentication_token_secret_version<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_authentication_token_secret_version<T: Into<String>>( self, v: T, ) -> Self
Sets the value of authentication_token_secret_version.
Sourcepub fn set_ssh_authentication_config<T>(self, v: T) -> Selfwhere
T: Into<SshAuthenticationConfig>,
pub fn set_ssh_authentication_config<T>(self, v: T) -> Selfwhere
T: Into<SshAuthenticationConfig>,
Sets the value of ssh_authentication_config.
Sourcepub fn set_or_clear_ssh_authentication_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SshAuthenticationConfig>,
pub fn set_or_clear_ssh_authentication_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SshAuthenticationConfig>,
Sets or clears the value of ssh_authentication_config.
Sourcepub fn set_token_status<T: Into<TokenStatus>>(self, v: T) -> Self
👎Deprecated
pub fn set_token_status<T: Into<TokenStatus>>(self, v: T) -> Self
Sets the value of token_status.
Trait Implementations§
Source§impl Clone for GitRemoteSettings
impl Clone for GitRemoteSettings
Source§fn clone(&self) -> GitRemoteSettings
fn clone(&self) -> GitRemoteSettings
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 GitRemoteSettings
impl Debug for GitRemoteSettings
Source§impl Default for GitRemoteSettings
impl Default for GitRemoteSettings
Source§fn default() -> GitRemoteSettings
fn default() -> GitRemoteSettings
Returns the “default value” for a type. Read more
Source§impl Message for GitRemoteSettings
impl Message for GitRemoteSettings
Source§impl PartialEq for GitRemoteSettings
impl PartialEq for GitRemoteSettings
impl StructuralPartialEq for GitRemoteSettings
Auto Trait Implementations§
impl Freeze for GitRemoteSettings
impl RefUnwindSafe for GitRemoteSettings
impl Send for GitRemoteSettings
impl Sync for GitRemoteSettings
impl Unpin for GitRemoteSettings
impl UnwindSafe for GitRemoteSettings
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