#[non_exhaustive]pub struct FlowInvocation {
pub flow: String,
pub display_name: String,
pub flow_state: OutputState,
/* private fields */
}Available on crate features
examples or playbooks or sessions only.Expand description
Stores metadata of the invocation of a CX flow.
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.flow: StringRequired. The unique identifier of the flow.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>.
display_name: StringOutput only. The display name of the flow.
flow_state: OutputStateRequired. Flow invocation’s output state.
Implementations§
Source§impl FlowInvocation
impl FlowInvocation
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 = FlowInvocation::new().set_display_name("example");Sourcepub fn set_flow_state<T: Into<OutputState>>(self, v: T) -> Self
pub fn set_flow_state<T: Into<OutputState>>(self, v: T) -> Self
Sets the value of flow_state.
§Example
ⓘ
use google_cloud_dialogflow_cx_v3::model::OutputState;
let x0 = FlowInvocation::new().set_flow_state(OutputState::Ok);
let x1 = FlowInvocation::new().set_flow_state(OutputState::Cancelled);
let x2 = FlowInvocation::new().set_flow_state(OutputState::Failed);Trait Implementations§
Source§impl Clone for FlowInvocation
impl Clone for FlowInvocation
Source§fn clone(&self) -> FlowInvocation
fn clone(&self) -> FlowInvocation
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 FlowInvocation
impl Debug for FlowInvocation
Source§impl Default for FlowInvocation
impl Default for FlowInvocation
Source§fn default() -> FlowInvocation
fn default() -> FlowInvocation
Returns the “default value” for a type. Read more
Source§impl Message for FlowInvocation
impl Message for FlowInvocation
Source§impl PartialEq for FlowInvocation
impl PartialEq for FlowInvocation
Source§fn eq(&self, other: &FlowInvocation) -> bool
fn eq(&self, other: &FlowInvocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FlowInvocation
Auto Trait Implementations§
impl Freeze for FlowInvocation
impl RefUnwindSafe for FlowInvocation
impl Send for FlowInvocation
impl Sync for FlowInvocation
impl Unpin for FlowInvocation
impl UnsafeUnpin for FlowInvocation
impl UnwindSafe for FlowInvocation
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