Skip to main content

normal

Function normal 

Source
pub fn normal(
    rsp: &mut RunFunctionResponse,
    message: impl Into<String>,
) -> &mut Result
Expand description

Adds a normal result to the response.

Returns the added result so a reason or target can be set on it:

let result = response::normal(&mut rsp, "created the bucket");
result.reason = Some("CreatedBucket".to_string());
result.target = Some(Target::CompositeAndClaim as i32);