#[non_exhaustive]pub struct CreateFunctionRequest {
pub parent: String,
pub function: Option<Function>,
pub function_id: String,
/* private fields */
}
Expand description
Request for the CreateFunction
method.
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.parent: String
Required. The project and location in which the function should be created,
specified in the format projects/*/locations/*
function: Option<Function>
Required. Function to be created.
function_id: String
The ID to use for the function, which will become the final component of the function’s resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
Implementations§
Source§impl CreateFunctionRequest
impl CreateFunctionRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_function<T>(self, v: T) -> Self
pub fn set_function<T>(self, v: T) -> Self
Sets the value of function.
Sourcepub fn set_or_clear_function<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_function<T>(self, v: Option<T>) -> Self
Sets or clears the value of function.
Sourcepub fn set_function_id<T: Into<String>>(self, v: T) -> Self
pub fn set_function_id<T: Into<String>>(self, v: T) -> Self
Sets the value of function_id.
Trait Implementations§
Source§impl Clone for CreateFunctionRequest
impl Clone for CreateFunctionRequest
Source§fn clone(&self) -> CreateFunctionRequest
fn clone(&self) -> CreateFunctionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateFunctionRequest
impl Debug for CreateFunctionRequest
Source§impl Default for CreateFunctionRequest
impl Default for CreateFunctionRequest
Source§fn default() -> CreateFunctionRequest
fn default() -> CreateFunctionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateFunctionRequest
impl Message for CreateFunctionRequest
Source§impl PartialEq for CreateFunctionRequest
impl PartialEq for CreateFunctionRequest
impl StructuralPartialEq for CreateFunctionRequest
Auto Trait Implementations§
impl Freeze for CreateFunctionRequest
impl RefUnwindSafe for CreateFunctionRequest
impl Send for CreateFunctionRequest
impl Sync for CreateFunctionRequest
impl Unpin for CreateFunctionRequest
impl UnwindSafe for CreateFunctionRequest
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