pub struct Faas { /* private fields */ }Expand description
The user fields describe information about the function as a service (FaaS) that is relevant to the event.
Implementations§
Source§impl Faas
impl Faas
Sourcepub fn get_id(&self) -> Option<&String>
pub fn get_id(&self) -> Option<&String>
The unique identifier of a serverless function.
For AWS Lambda it’s the function ARN (Amazon Resource Name) without a version or alias suffix.
Sourcepub fn set_id(&mut self, id_arg: String)
pub fn set_id(&mut self, id_arg: String)
The unique identifier of a serverless function.
For AWS Lambda it’s the function ARN (Amazon Resource Name) without a version or alias suffix.
§Example
arn:aws:lambda:us-west-2:123456789012:function:my-function
Sourcepub fn get_version(&self) -> Option<&String>
pub fn get_version(&self) -> Option<&String>
The version of a serverless function.
Sourcepub fn set_version(&mut self, version_arg: String)
pub fn set_version(&mut self, version_arg: String)
Sourcepub fn get_coldstart(&self) -> Option<&bool>
pub fn get_coldstart(&self) -> Option<&bool>
Boolean value indicating a cold start of a function.
Sourcepub fn set_coldstart(&mut self, coldstart_arg: bool)
pub fn set_coldstart(&mut self, coldstart_arg: bool)
Boolean value indicating a cold start of a function.
Sourcepub fn get_execution(&self) -> Option<&String>
pub fn get_execution(&self) -> Option<&String>
The execution ID of the current function execution.
Sourcepub fn set_execution(&mut self, execution_arg: String)
pub fn set_execution(&mut self, execution_arg: String)
Sourcepub fn get_trigger(&self) -> Option<&String>
pub fn get_trigger(&self) -> Option<&String>
Details about the function trigger.
Sourcepub fn set_trigger(&mut self, trigger_arg: String)
pub fn set_trigger(&mut self, trigger_arg: String)
Details about the function trigger.
Sourcepub fn get_trigger_type(&self) -> Option<&String>
pub fn get_trigger_type(&self) -> Option<&String>
The trigger for the function execution.
Sourcepub fn set_trigger_type(&mut self, trigger_type_arg: String)
pub fn set_trigger_type(&mut self, trigger_type_arg: String)
Sourcepub fn get_trigger_request_id(&self) -> Option<&String>
pub fn get_trigger_request_id(&self) -> Option<&String>
The ID of the trigger request , message, event, etc.