pub struct SessionCustomNotificationData {
pub name: String,
pub payload: Value,
pub source: String,
pub subject: HashMap<String, String>,
pub version: Option<i64>,
}Expand description
Session event “session.custom_notification”. Opaque custom notification data. Consumers may branch on source and name, but payload semantics are source-defined.
Fields§
§name: StringSource-defined custom notification name
payload: ValueSource-defined JSON payload for the custom notification
source: StringNamespace for the custom notification producer
subject: HashMap<String, String>Optional source-defined string identifiers describing the payload subject
version: Option<i64>Optional source-defined payload schema version
Trait Implementations§
Source§impl Clone for SessionCustomNotificationData
impl Clone for SessionCustomNotificationData
Source§fn clone(&self) -> SessionCustomNotificationData
fn clone(&self) -> SessionCustomNotificationData
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 Default for SessionCustomNotificationData
impl Default for SessionCustomNotificationData
Source§fn default() -> SessionCustomNotificationData
fn default() -> SessionCustomNotificationData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionCustomNotificationData
impl<'de> Deserialize<'de> for SessionCustomNotificationData
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 SessionCustomNotificationData
impl RefUnwindSafe for SessionCustomNotificationData
impl Send for SessionCustomNotificationData
impl Sync for SessionCustomNotificationData
impl Unpin for SessionCustomNotificationData
impl UnsafeUnpin for SessionCustomNotificationData
impl UnwindSafe for SessionCustomNotificationData
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