pub struct Repo {
pub mirror_config: Option<MirrorConfig>,
pub name: Option<String>,
pub pubsub_configs: Option<HashMap<String, PubsubConfig>>,
pub size: Option<i64>,
pub url: Option<String>,
}
Expand description
A repository (or repo) is a Git repository storing versioned source content.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- repos create projects (request|response)
- repos get projects (response)
- repos patch projects (response)
Fields§
§mirror_config: Option<MirrorConfig>
How this repository mirrors a repository managed by another service. Read-only field.
name: Option<String>
Resource name of the repository, of the form projects//repos/
. The repo name may contain slashes. eg, projects/myproject/repos/name/with/slash
pubsub_configs: Option<HashMap<String, PubsubConfig>>
How this repository publishes a change in the repository through Cloud Pub/Sub. Keyed by the topic names.
size: Option<i64>
The disk usage of the repo, in bytes. Read-only field. Size is only returned by GetRepo.
url: Option<String>
URL to clone the repository from Google Cloud Source Repositories. Read-only field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Repo
impl<'de> Deserialize<'de> for Repo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Repo
impl ResponseResult for Repo
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnwindSafe for Repo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more