#[non_exhaustive]pub struct AuditEventFieldBuilder { /* private fields */ }Expand description
A builder for AuditEventField.
Implementations§
source§impl AuditEventFieldBuilder
impl AuditEventFieldBuilder
sourcepub fn event_field_id(self, input: impl Into<String>) -> Self
pub fn event_field_id(self, input: impl Into<String>) -> Self
Unique identifier of field in an Audit History entry.
This field is required.sourcepub fn set_event_field_id(self, input: Option<String>) -> Self
pub fn set_event_field_id(self, input: Option<String>) -> Self
Unique identifier of field in an Audit History entry.
sourcepub fn get_event_field_id(&self) -> &Option<String>
pub fn get_event_field_id(&self) -> &Option<String>
Unique identifier of field in an Audit History entry.
sourcepub fn old_value(self, input: AuditEventFieldValueUnion) -> Self
pub fn old_value(self, input: AuditEventFieldValueUnion) -> Self
Union of potential field value types.
sourcepub fn set_old_value(self, input: Option<AuditEventFieldValueUnion>) -> Self
pub fn set_old_value(self, input: Option<AuditEventFieldValueUnion>) -> Self
Union of potential field value types.
sourcepub fn get_old_value(&self) -> &Option<AuditEventFieldValueUnion>
pub fn get_old_value(&self) -> &Option<AuditEventFieldValueUnion>
Union of potential field value types.
sourcepub fn new_value(self, input: AuditEventFieldValueUnion) -> Self
pub fn new_value(self, input: AuditEventFieldValueUnion) -> Self
Union of potential field value types.
This field is required.sourcepub fn set_new_value(self, input: Option<AuditEventFieldValueUnion>) -> Self
pub fn set_new_value(self, input: Option<AuditEventFieldValueUnion>) -> Self
Union of potential field value types.
sourcepub fn get_new_value(&self) -> &Option<AuditEventFieldValueUnion>
pub fn get_new_value(&self) -> &Option<AuditEventFieldValueUnion>
Union of potential field value types.
sourcepub fn build(self) -> Result<AuditEventField, BuildError>
pub fn build(self) -> Result<AuditEventField, BuildError>
Consumes the builder and constructs a AuditEventField.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AuditEventFieldBuilder
impl Clone for AuditEventFieldBuilder
source§fn clone(&self) -> AuditEventFieldBuilder
fn clone(&self) -> AuditEventFieldBuilder
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 AuditEventFieldBuilder
impl Debug for AuditEventFieldBuilder
source§impl Default for AuditEventFieldBuilder
impl Default for AuditEventFieldBuilder
source§fn default() -> AuditEventFieldBuilder
fn default() -> AuditEventFieldBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AuditEventFieldBuilder
impl PartialEq for AuditEventFieldBuilder
source§fn eq(&self, other: &AuditEventFieldBuilder) -> bool
fn eq(&self, other: &AuditEventFieldBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AuditEventFieldBuilder
Auto Trait Implementations§
impl Freeze for AuditEventFieldBuilder
impl RefUnwindSafe for AuditEventFieldBuilder
impl Send for AuditEventFieldBuilder
impl Sync for AuditEventFieldBuilder
impl Unpin for AuditEventFieldBuilder
impl UnwindSafe for AuditEventFieldBuilder
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.