#[non_exhaustive]pub struct RelationalDatabaseEventBuilder { /* private fields */ }
Expand description
A builder for RelationalDatabaseEvent
.
Implementations§
source§impl RelationalDatabaseEventBuilder
impl RelationalDatabaseEventBuilder
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
The database that the database event relates to.
sourcepub fn set_resource(self, input: Option<String>) -> Self
pub fn set_resource(self, input: Option<String>) -> Self
The database that the database event relates to.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The database that the database event relates to.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the database event was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the database event was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the database event was created.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message of the database event.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The message of the database event.
sourcepub fn event_categories(self, input: impl Into<String>) -> Self
pub fn event_categories(self, input: impl Into<String>) -> Self
Appends an item to event_categories
.
To override the contents of this collection use set_event_categories
.
The category that the database event belongs to.
sourcepub fn set_event_categories(self, input: Option<Vec<String>>) -> Self
pub fn set_event_categories(self, input: Option<Vec<String>>) -> Self
The category that the database event belongs to.
sourcepub fn get_event_categories(&self) -> &Option<Vec<String>>
pub fn get_event_categories(&self) -> &Option<Vec<String>>
The category that the database event belongs to.
sourcepub fn build(self) -> RelationalDatabaseEvent
pub fn build(self) -> RelationalDatabaseEvent
Consumes the builder and constructs a RelationalDatabaseEvent
.
Trait Implementations§
source§impl Clone for RelationalDatabaseEventBuilder
impl Clone for RelationalDatabaseEventBuilder
source§fn clone(&self) -> RelationalDatabaseEventBuilder
fn clone(&self) -> RelationalDatabaseEventBuilder
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 Default for RelationalDatabaseEventBuilder
impl Default for RelationalDatabaseEventBuilder
source§fn default() -> RelationalDatabaseEventBuilder
fn default() -> RelationalDatabaseEventBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RelationalDatabaseEventBuilder
impl PartialEq for RelationalDatabaseEventBuilder
source§fn eq(&self, other: &RelationalDatabaseEventBuilder) -> bool
fn eq(&self, other: &RelationalDatabaseEventBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RelationalDatabaseEventBuilder
Auto Trait Implementations§
impl Freeze for RelationalDatabaseEventBuilder
impl RefUnwindSafe for RelationalDatabaseEventBuilder
impl Send for RelationalDatabaseEventBuilder
impl Sync for RelationalDatabaseEventBuilder
impl Unpin for RelationalDatabaseEventBuilder
impl UnwindSafe for RelationalDatabaseEventBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.