#[non_exhaustive]pub struct Repository {
pub name: String,
pub remote_uri: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub annotations: HashMap<String, String>,
pub etag: String,
pub webhook_id: String,
/* private fields */
}Expand description
A repository associated to a parent connection.
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.name: StringImmutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*.
remote_uri: StringRequired. Git Clone HTTPS URI.
create_time: Option<Timestamp>Output only. Server assigned timestamp for when the connection was created.
update_time: Option<Timestamp>Output only. Server assigned timestamp for when the connection was updated.
annotations: HashMap<String, String>Allows clients to store small amounts of arbitrary data.
etag: StringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
webhook_id: StringOutput only. External ID of the webhook created for the repository.
Implementations§
Source§impl Repository
impl Repository
pub fn new() -> Self
Sourcepub fn set_remote_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_remote_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of remote_uri.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_annotations<T, K, V>(self, v: T) -> Self
pub fn set_annotations<T, K, V>(self, v: T) -> Self
Sets the value of annotations.
Sourcepub fn set_webhook_id<T: Into<String>>(self, v: T) -> Self
pub fn set_webhook_id<T: Into<String>>(self, v: T) -> Self
Sets the value of webhook_id.
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more