[][src]Enum gcp_client::google::cloud::functions::v1beta2::cloud_function::SourceCode

pub enum SourceCode {
    SourceArchiveUrl(String),
    SourceRepository(SourceRepository),
    SourceRepositoryUrl(String),
    SourceUploadUrl(String),
}

The location of the function source code.

Variants

SourceArchiveUrl(String)

The Google Cloud Storage URL, starting with gs://, pointing to the zip archive which contains the function.

SourceRepository(SourceRepository)

The hosted repository where the function is defined.

SourceRepositoryUrl(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.

SourceUploadUrl(String)

The Google Cloud Storage signed URL used for source uploading, generated by [google.cloud.functions.v1beta2.GenerateUploadUrl][]

Implementations

impl SourceCode[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<SourceCode>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B,
    ctx: DecodeContext
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl Clone for SourceCode[src]

impl Debug for SourceCode[src]

impl PartialEq<SourceCode> for SourceCode[src]

impl StructuralPartialEq for SourceCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]