pub struct SessionCustomNotificationData {
pub name: String,
pub payload: Value,
pub source: String,
pub subject: Option<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: Option<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<'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