#[non_exhaustive]pub struct EntryLinkEvent {
pub message: String,
pub event_type: EventType,
pub resource: String,
/* private fields */
}Expand description
Payload associated with Entry related log events.
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.message: StringThe log message.
event_type: EventTypeThe type of the event.
resource: StringName of the resource.
Implementations§
Source§impl EntryLinkEvent
impl EntryLinkEvent
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_event_type<T: Into<EventType>>(self, v: T) -> Self
pub fn set_event_type<T: Into<EventType>>(self, v: T) -> Self
Sets the value of event_type.
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of resource.
Trait Implementations§
Source§impl Clone for EntryLinkEvent
impl Clone for EntryLinkEvent
Source§fn clone(&self) -> EntryLinkEvent
fn clone(&self) -> EntryLinkEvent
Returns a duplicate 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 EntryLinkEvent
impl Debug for EntryLinkEvent
Source§impl Default for EntryLinkEvent
impl Default for EntryLinkEvent
Source§fn default() -> EntryLinkEvent
fn default() -> EntryLinkEvent
Returns the “default value” for a type. Read more
Source§impl Message for EntryLinkEvent
impl Message for EntryLinkEvent
Source§impl PartialEq for EntryLinkEvent
impl PartialEq for EntryLinkEvent
impl StructuralPartialEq for EntryLinkEvent
Auto Trait Implementations§
impl Freeze for EntryLinkEvent
impl RefUnwindSafe for EntryLinkEvent
impl Send for EntryLinkEvent
impl Sync for EntryLinkEvent
impl Unpin for EntryLinkEvent
impl UnwindSafe for EntryLinkEvent
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