pub struct NotificationCapability {
pub local: bool,
pub push: bool,
}Expand description
Notification capability configuration.
Fields§
§local: boolEnable local notifications.
push: boolRemote push placeholder; schema version 1 rejects true.
Trait Implementations§
Source§impl Clone for NotificationCapability
impl Clone for NotificationCapability
impl Copy for NotificationCapability
Source§impl Debug for NotificationCapability
impl Debug for NotificationCapability
Source§impl Default for NotificationCapability
impl Default for NotificationCapability
Source§impl<'de> Deserialize<'de> for NotificationCapabilitywhere
NotificationCapability: Default,
impl<'de> Deserialize<'de> for NotificationCapabilitywhere
NotificationCapability: Default,
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 JsonSchema for NotificationCapability
impl JsonSchema for NotificationCapability
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NotificationCapability
impl PartialEq for NotificationCapability
Source§impl Serialize for NotificationCapability
impl Serialize for NotificationCapability
impl StructuralPartialEq for NotificationCapability
Auto Trait Implementations§
impl Freeze for NotificationCapability
impl RefUnwindSafe for NotificationCapability
impl Send for NotificationCapability
impl Sync for NotificationCapability
impl Unpin for NotificationCapability
impl UnsafeUnpin for NotificationCapability
impl UnwindSafe for NotificationCapability
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