pub struct Builder<T>(/* private fields */);Expand description
A builder for AuditLogV2
Implementations§
Source§impl Builder<ResultStage>
impl Builder<ResultStage>
Sourcepub fn result(self, result: AuditResult) -> Builder<Complete>
pub fn result(self, result: AuditResult) -> Builder<Complete>
Sets the result field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn org_id(self, org_id: impl Into<Option<OrganizationId>>) -> Self
pub fn org_id(self, org_id: impl Into<Option<OrganizationId>>) -> Self
Sets the org_id field.
Sourcepub fn push_other_uids(self, other_uids: UserId) -> Self
pub fn push_other_uids(self, other_uids: UserId) -> Self
Adds a value to the other_uids field.
Sourcepub fn other_uids(self, other_uids: impl IntoIterator<Item = UserId>) -> Self
pub fn other_uids(self, other_uids: impl IntoIterator<Item = UserId>) -> Self
Sets the other_uids field.
Sourcepub fn extend_other_uids(
self,
other_uids: impl IntoIterator<Item = UserId>,
) -> Self
pub fn extend_other_uids( self, other_uids: impl IntoIterator<Item = UserId>, ) -> Self
Adds values to the other_uids field.
Sourcepub fn result(self, result: AuditResult) -> Self
pub fn result(self, result: AuditResult) -> Self
Sets the result field.
Sourcepub fn insert_request_params(
self,
key: impl Into<String>,
value: impl Serialize,
) -> Self
pub fn insert_request_params( self, key: impl Into<String>, value: impl Serialize, ) -> Self
Adds an entry to the request_params field.
Sourcepub fn request_params(
self,
request_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn request_params( self, request_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Sets the request_params field.
Sourcepub fn extend_request_params(
self,
request_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn extend_request_params( self, request_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Adds entries to the request_params field.
Sourcepub fn insert_result_params(
self,
key: impl Into<String>,
value: impl Serialize,
) -> Self
pub fn insert_result_params( self, key: impl Into<String>, value: impl Serialize, ) -> Self
Adds an entry to the result_params field.
Sourcepub fn result_params(
self,
result_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn result_params( self, result_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Sets the result_params field.
Sourcepub fn extend_result_params(
self,
result_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn extend_result_params( self, result_params: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Adds entries to the result_params field.
Sourcepub fn build(self) -> AuditLogV2
pub fn build(self) -> AuditLogV2
Consumes the builder, returning a AuditLogV2.
Trait Implementations§
Source§impl From<AuditLogV2> for Builder<Complete>
impl From<AuditLogV2> for Builder<Complete>
Source§fn from(v: AuditLogV2) -> Self
fn from(v: AuditLogV2) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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