pub enum DisplaySchedule {
Once,
Session,
Every {
seconds: i64,
},
Always,
}Expand description
DisplaySchedule
JSON schema
{
"oneOf": [
{
"description": "Display it only once: after dismissal do not show it again",
"type": "string",
"enum": [
"Once"
]
},
{
"description": "Display it again the next session if it is dismissed",
"type": "string",
"enum": [
"Session"
]
},
{
"type": "object",
"required": [
"Every"
],
"properties": {
"Every": {
"description": "Display it again after a certain period of time after it is dismissed",
"type": "object",
"required": [
"seconds"
],
"properties": {
"seconds": {
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
}
}
},
{
"description": "Always display it, do not allow it to be dismissed",
"type": "string",
"enum": [
"Always"
]
}
]
}Variants§
Once
Display it only once: after dismissal do not show it again
Session
Display it again the next session if it is dismissed
Every
Always
Always display it, do not allow it to be dismissed
Trait Implementations§
Source§impl Clone for DisplaySchedule
impl Clone for DisplaySchedule
Source§impl Debug for DisplaySchedule
impl Debug for DisplaySchedule
Source§impl<'de> Deserialize<'de> for DisplaySchedule
impl<'de> Deserialize<'de> for DisplaySchedule
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 From<&DisplaySchedule> for DisplaySchedule
impl From<&DisplaySchedule> for DisplaySchedule
Source§fn from(value: &DisplaySchedule) -> Self
fn from(value: &DisplaySchedule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for DisplaySchedule
impl Freeze for DisplaySchedule
impl RefUnwindSafe for DisplaySchedule
impl Send for DisplaySchedule
impl Sync for DisplaySchedule
impl Unpin for DisplaySchedule
impl UnsafeUnpin for DisplaySchedule
impl UnwindSafe for DisplaySchedule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more