#[non_exhaustive]pub struct Event {
pub report_time: Option<Timestamp>,
pub type: EventType,
pub details: HashMap<String, String>,
/* private fields */
}Expand description
The definition of an Event for a managed / semi-managed notebook instance.
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.report_time: Option<Timestamp>Optional. Event report time.
type: EventTypeOptional. Event type.
details: HashMap<String, String>Optional. Event details. This field is used to pass event information.
Implementations§
Source§impl Event
impl Event
pub fn new() -> Self
Sourcepub fn set_report_time<T>(self, v: T) -> Self
pub fn set_report_time<T>(self, v: T) -> Self
Sets the value of report_time.
Sourcepub fn set_or_clear_report_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_report_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of report_time.
Sourcepub fn set_details<T, K, V>(self, v: T) -> Self
pub fn set_details<T, K, V>(self, v: T) -> Self
Sets the value of details.
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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