pub enum OverlapPolicy {
Allow,
Skip,
}Expand description
What a schedule does when an occurrence comes while one of its runs is still active.
§Examples
use ironflow_store::entities::OverlapPolicy;
assert_eq!(OverlapPolicy::default(), OverlapPolicy::Allow);
assert_eq!(OverlapPolicy::Skip.as_ref(), "skip");
let parsed: OverlapPolicy = "allow".parse().unwrap();
assert_eq!(parsed, OverlapPolicy::Allow);JSON schema
{
"description": "What a schedule does when an occurrence comes while one of its runs is\nstill active.\n\n# Examples\n\n```\nuse ironflow_store::entities::OverlapPolicy;\n\nassert_eq!(OverlapPolicy::default(), OverlapPolicy::Allow);\nassert_eq!(OverlapPolicy::Skip.as_ref(), \"skip\");\n\nlet parsed: OverlapPolicy = \"allow\".parse().unwrap();\nassert_eq!(parsed, OverlapPolicy::Allow);\n```",
"type": "string",
"enum": [
"allow",
"skip"
]
}
```ignore
</details>Variants§
Trait Implementations§
Source§impl Clone for OverlapPolicy
impl Clone for OverlapPolicy
impl Copy for OverlapPolicy
Source§impl Debug for OverlapPolicy
impl Debug for OverlapPolicy
Source§impl<'de> Deserialize<'de> for OverlapPolicy
impl<'de> Deserialize<'de> for OverlapPolicy
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
Source§impl Display for OverlapPolicy
impl Display for OverlapPolicy
impl Eq for OverlapPolicy
Source§impl FromStr for OverlapPolicy
impl FromStr for OverlapPolicy
Source§impl Hash for OverlapPolicy
impl Hash for OverlapPolicy
Source§impl Ord for OverlapPolicy
impl Ord for OverlapPolicy
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OverlapPolicy
impl PartialEq for OverlapPolicy
Source§impl PartialOrd for OverlapPolicy
impl PartialOrd for OverlapPolicy
Source§impl Serialize for OverlapPolicy
impl Serialize for OverlapPolicy
impl StructuralPartialEq for OverlapPolicy
Source§impl TryFrom<&String> for OverlapPolicy
impl TryFrom<&String> for OverlapPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for OverlapPolicy
impl TryFrom<&str> for OverlapPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for OverlapPolicy
impl TryFrom<String> for OverlapPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for OverlapPolicy
impl RefUnwindSafe for OverlapPolicy
impl Send for OverlapPolicy
impl Sync for OverlapPolicy
impl Unpin for OverlapPolicy
impl UnsafeUnpin for OverlapPolicy
impl UnwindSafe for OverlapPolicy
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