#[non_exhaustive]pub struct SubscriberAddedMessage {
pub notebook_id: String,
pub session_id: String,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub user: User,
pub focus: NotebookFocus,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.notebook_id: StringThe ID of the notebook that the user subscribed to.
session_id: StringID associated with the newly connected session. There can be multiple sessions for a single (notebook|user) pair. The ID can be used multiple times for different (notebook|user) pairs. The combination of notebook, user and session will be unique.
created_at: TimestampThe moment the session was created.
updated_at: TimestampThe last time the user was active in this session.
user: UserUser details associated with the session.
focus: NotebookFocusUser’s focus within the notebook.
Implementations§
source§impl SubscriberAddedMessage
impl SubscriberAddedMessage
sourcepub fn builder() -> SubscriberAddedMessageBuilder<((), (), (), (), (), ())>
pub fn builder() -> SubscriberAddedMessageBuilder<((), (), (), (), (), ())>
Create a builder for building SubscriberAddedMessage.
On the builder, call .notebook_id(...), .session_id(...), .created_at(...), .updated_at(...), .user(...), .focus(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SubscriberAddedMessage.
Trait Implementations§
source§impl Clone for SubscriberAddedMessage
impl Clone for SubscriberAddedMessage
source§fn clone(&self) -> SubscriberAddedMessage
fn clone(&self) -> SubscriberAddedMessage
Returns a copy 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 SubscriberAddedMessage
impl Debug for SubscriberAddedMessage
source§impl<'de> Deserialize<'de> for SubscriberAddedMessage
impl<'de> Deserialize<'de> for SubscriberAddedMessage
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 PartialEq for SubscriberAddedMessage
impl PartialEq for SubscriberAddedMessage
source§fn eq(&self, other: &SubscriberAddedMessage) -> bool
fn eq(&self, other: &SubscriberAddedMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SubscriberAddedMessage
impl Serialize for SubscriberAddedMessage
impl Eq for SubscriberAddedMessage
impl StructuralPartialEq for SubscriberAddedMessage
Auto Trait Implementations§
impl Freeze for SubscriberAddedMessage
impl RefUnwindSafe for SubscriberAddedMessage
impl Send for SubscriberAddedMessage
impl Sync for SubscriberAddedMessage
impl Unpin for SubscriberAddedMessage
impl UnwindSafe for SubscriberAddedMessage
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