#[non_exhaustive]pub struct CloudFunctionInfo {
pub display_name: String,
pub uri: String,
pub location: String,
pub version_id: i64,
/* private fields */
}Expand description
For display only. Metadata associated with a Cloud Function.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.display_name: StringName of a Cloud Function.
uri: StringURI of a Cloud Function.
location: StringLocation in which the Cloud Function is deployed.
version_id: i64Latest successfully deployed version id of the Cloud Function.
Implementations§
Source§impl CloudFunctionInfo
impl CloudFunctionInfo
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = CloudFunctionInfo::new().set_display_name("example");Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_version_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_version_id<T: Into<i64>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CloudFunctionInfo
impl Clone for CloudFunctionInfo
Source§fn clone(&self) -> CloudFunctionInfo
fn clone(&self) -> CloudFunctionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudFunctionInfo
impl Debug for CloudFunctionInfo
Source§impl Default for CloudFunctionInfo
impl Default for CloudFunctionInfo
Source§fn default() -> CloudFunctionInfo
fn default() -> CloudFunctionInfo
Returns the “default value” for a type. Read more
Source§impl Message for CloudFunctionInfo
impl Message for CloudFunctionInfo
Source§impl PartialEq for CloudFunctionInfo
impl PartialEq for CloudFunctionInfo
Source§fn eq(&self, other: &CloudFunctionInfo) -> bool
fn eq(&self, other: &CloudFunctionInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CloudFunctionInfo
Auto Trait Implementations§
impl Freeze for CloudFunctionInfo
impl RefUnwindSafe for CloudFunctionInfo
impl Send for CloudFunctionInfo
impl Sync for CloudFunctionInfo
impl Unpin for CloudFunctionInfo
impl UnsafeUnpin for CloudFunctionInfo
impl UnwindSafe for CloudFunctionInfo
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
Mutably borrows from an owned value. Read more