Struct google_cloudfunctions1::CloudFunction

source ·
pub struct CloudFunction {
Show 15 fields pub event_trigger: Option<EventTrigger>, pub status: Option<String>, pub update_time: Option<String>, pub description: Option<String>, pub source_repository: Option<SourceRepository>, pub source_upload_url: Option<String>, pub https_trigger: Option<HttpsTrigger>, pub source_archive_url: Option<String>, pub labels: Option<HashMap<String, String>>, pub available_memory_mb: Option<i32>, pub version_id: Option<String>, pub entry_point: Option<String>, pub service_account_email: Option<String>, pub timeout: Option<String>, pub name: Option<String>,
}
Expand description

Describes a Cloud Function that contains user computation executed in response to an event. It encapsulate function and triggers configurations.

§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).

Fields§

§event_trigger: Option<EventTrigger>

A source that fires events in response to a condition in another service.

§status: Option<String>

Output only. Status of the function deployment.

§update_time: Option<String>

Output only. The last update timestamp of a Cloud Function.

§description: Option<String>

User-provided description of a function.

§source_repository: Option<SourceRepository>

Beta Feature

The source repository where a function is hosted.

§source_upload_url: Option<String>

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

§https_trigger: Option<HttpsTrigger>

An HTTPS endpoint type of source that can be triggered via URL.

§source_archive_url: Option<String>

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

§labels: Option<HashMap<String, String>>

Labels associated with this Cloud Function.

§available_memory_mb: Option<i32>

The amount of memory in MB available for a function. Defaults to 256MB.

§version_id: Option<String>

Output only. The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.

§entry_point: Option<String>

The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named “function”. For Node.js this is name of a function exported by the module specified in source_location.

§service_account_email: Option<String>

Output only. The email of the function’s service account.

§timeout: Option<String>

The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.

§name: Option<String>

A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*

Trait Implementations§

source§

impl Clone for CloudFunction

source§

fn clone(&self) -> CloudFunction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CloudFunction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CloudFunction

source§

fn default() -> CloudFunction

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for CloudFunction

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for CloudFunction

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for CloudFunction

source§

impl ResponseResult for CloudFunction

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Typeable for T
where T: Any,

source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,