pub struct OnFailureConfig {
pub action: String,
pub wait_time: Option<u32>,
}Expand description
The behavior applied when a composition fails.
Fields§
§action: StringThe action to take. Currently only close-room is supported.
wait_time: Option<u32>Seconds to wait before applying the action. Capped at 150, default 150.
Implementations§
Source§impl OnFailureConfig
impl OnFailureConfig
Sourcepub fn close_room(wait_time: Option<u32>) -> Self
pub fn close_room(wait_time: Option<u32>) -> Self
Close the room if the composition fails.
Trait Implementations§
Source§impl Clone for OnFailureConfig
impl Clone for OnFailureConfig
Source§fn clone(&self) -> OnFailureConfig
fn clone(&self) -> OnFailureConfig
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 OnFailureConfig
impl Debug for OnFailureConfig
Source§impl<'de> Deserialize<'de> for OnFailureConfig
impl<'de> Deserialize<'de> for OnFailureConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OnFailureConfig
impl RefUnwindSafe for OnFailureConfig
impl Send for OnFailureConfig
impl Sync for OnFailureConfig
impl Unpin for OnFailureConfig
impl UnsafeUnpin for OnFailureConfig
impl UnwindSafe for OnFailureConfig
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