pub struct SourceRepository {
pub deployed_url: Option<String>,
pub url: Option<String>,
}
Expand description
Describes SourceRepository, used to represent parameters related to source repository where a function is hosted.
This type is not used in any activity, and only used as part of another schema.
Fields§
§deployed_url: Option<String>
Output only. The URL pointing to the hosted repository where the function were defined at the time of deployment. It always points to a specific commit in the format described above.
url: Option<String>
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats: To refer to a specific commit: https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*
To refer to a moveable alias (branch): https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*
In particular, to refer to HEAD use master
moveable alias. To refer to a specific fixed alias (tag): https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*
You may omit paths/*
if you want to use the main directory.
Trait Implementations§
Source§impl Clone for SourceRepository
impl Clone for SourceRepository
Source§fn clone(&self) -> SourceRepository
fn clone(&self) -> SourceRepository
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SourceRepository
impl Debug for SourceRepository
Source§impl Default for SourceRepository
impl Default for SourceRepository
Source§fn default() -> SourceRepository
fn default() -> SourceRepository
Source§impl<'de> Deserialize<'de> for SourceRepository
impl<'de> Deserialize<'de> for SourceRepository
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>,
Source§impl Serialize for SourceRepository
impl Serialize for SourceRepository
impl Part for SourceRepository
Auto Trait Implementations§
impl Freeze for SourceRepository
impl RefUnwindSafe for SourceRepository
impl Send for SourceRepository
impl Sync for SourceRepository
impl Unpin for SourceRepository
impl UnwindSafe for SourceRepository
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