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§fn clone(&self) -> DisplaySchedule
fn clone(&self) -> DisplaySchedule
Returns a duplicate of the value. Read more
1.0.0 · 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 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 Freeze for DisplaySchedule
impl RefUnwindSafe for DisplaySchedule
impl Send for DisplaySchedule
impl Sync for DisplaySchedule
impl Unpin 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