pub struct Builder<T>(/* private fields */);Expand description
A builder for AuditLogV3
Implementations§
Source§impl Builder<ProductStage>
impl Builder<ProductStage>
Source§impl Builder<ProductVersionStage>
impl Builder<ProductVersionStage>
Sourcepub fn product_version(
self,
product_version: impl Into<String>,
) -> Builder<ProducerTypeStage>
pub fn product_version( self, product_version: impl Into<String>, ) -> Builder<ProducerTypeStage>
Sets the product_version field.
Source§impl Builder<ProducerTypeStage>
impl Builder<ProducerTypeStage>
Sourcepub fn producer_type(
self,
producer_type: AuditProducer,
) -> Builder<EventIdStage>
pub fn producer_type( self, producer_type: AuditProducer, ) -> Builder<EventIdStage>
Sets the producer_type field.
Source§impl Builder<EventIdStage>
impl Builder<EventIdStage>
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 product_version(self, product_version: impl Into<String>) -> Self
pub fn product_version(self, product_version: impl Into<String>) -> Self
Sets the product_version field.
Sourcepub fn deployment(self, deployment: impl Into<Option<String>>) -> Self
pub fn deployment(self, deployment: impl Into<Option<String>>) -> Self
Sets the deployment field.
Sourcepub fn environment(self, environment: impl Into<Option<String>>) -> Self
pub fn environment(self, environment: impl Into<Option<String>>) -> Self
Sets the environment field.
Sourcepub fn producer_type(self, producer_type: AuditProducer) -> Self
pub fn producer_type(self, producer_type: AuditProducer) -> Self
Sets the producer_type field.
Sourcepub fn push_organizations(self, organizations: Organization) -> Self
pub fn push_organizations(self, organizations: Organization) -> Self
Adds a value to the organizations field.
Sourcepub fn organizations(
self,
organizations: impl IntoIterator<Item = Organization>,
) -> Self
pub fn organizations( self, organizations: impl IntoIterator<Item = Organization>, ) -> Self
Sets the organizations field.
Sourcepub fn extend_organizations(
self,
organizations: impl IntoIterator<Item = Organization>,
) -> Self
pub fn extend_organizations( self, organizations: impl IntoIterator<Item = Organization>, ) -> Self
Adds values to the organizations field.
Sourcepub fn log_entry_id(self, log_entry_id: impl Into<Option<Uuid>>) -> Self
pub fn log_entry_id(self, log_entry_id: impl Into<Option<Uuid>>) -> Self
Sets the log_entry_id field.
Sourcepub fn sequence_id(self, sequence_id: impl Into<Option<i32>>) -> Self
pub fn sequence_id(self, sequence_id: impl Into<Option<i32>>) -> Self
Sets the sequence_id field.
Sourcepub fn user_agent(self, user_agent: impl Into<Option<String>>) -> Self
pub fn user_agent(self, user_agent: impl Into<Option<String>>) -> Self
Sets the user_agent field.
Sourcepub fn push_categories(self, categories: impl Into<String>) -> Self
pub fn push_categories(self, categories: impl Into<String>) -> Self
Adds a value to the categories field.
Sourcepub fn categories(
self,
categories: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn categories( self, categories: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Sets the categories field.
Sourcepub fn extend_categories(
self,
categories: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn extend_categories( self, categories: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Adds values to the categories field.
Sourcepub fn push_entities(self, entities: impl Serialize) -> Self
pub fn push_entities(self, entities: impl Serialize) -> Self
Adds a value to the entities field.
Sourcepub fn entities(
self,
entities: impl IntoIterator<Item = impl Serialize>,
) -> Self
pub fn entities( self, entities: impl IntoIterator<Item = impl Serialize>, ) -> Self
Sets the entities field.
Sourcepub fn extend_entities(
self,
entities: impl IntoIterator<Item = impl Serialize>,
) -> Self
pub fn extend_entities( self, entities: impl IntoIterator<Item = impl Serialize>, ) -> Self
Adds values to the entities field.
Sourcepub fn push_users(self, users: ContextualizedUser) -> Self
pub fn push_users(self, users: ContextualizedUser) -> Self
Adds a value to the users field.
Sourcepub fn users(self, users: impl IntoIterator<Item = ContextualizedUser>) -> Self
pub fn users(self, users: impl IntoIterator<Item = ContextualizedUser>) -> Self
Sets the users field.
Sourcepub fn extend_users(
self,
users: impl IntoIterator<Item = ContextualizedUser>,
) -> Self
pub fn extend_users( self, users: impl IntoIterator<Item = ContextualizedUser>, ) -> Self
Adds values to the users field.
Sourcepub fn push_origins(self, origins: impl Into<String>) -> Self
pub fn push_origins(self, origins: impl Into<String>) -> Self
Adds a value to the origins field.
Sourcepub fn origins(
self,
origins: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn origins( self, origins: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Sets the origins field.
Sourcepub fn extend_origins(
self,
origins: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn extend_origins( self, origins: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Adds values to the origins field.
Sourcepub fn source_origin(self, source_origin: impl Into<Option<String>>) -> Self
pub fn source_origin(self, source_origin: impl Into<Option<String>>) -> Self
Sets the source_origin field.
Sourcepub fn insert_request_params(
self,
key: impl Into<String>,
value: SensitivityTaggedValue,
) -> Self
pub fn insert_request_params( self, key: impl Into<String>, value: SensitivityTaggedValue, ) -> Self
Adds an entry to the request_params field.
Sourcepub fn request_params(
self,
request_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>,
) -> Self
pub fn request_params( self, request_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>, ) -> Self
Sets the request_params field.
Sourcepub fn extend_request_params(
self,
request_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>,
) -> Self
pub fn extend_request_params( self, request_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>, ) -> Self
Adds entries to the request_params field.
Sourcepub fn insert_request_fields(
self,
key: impl Into<String>,
value: impl Serialize,
) -> Self
pub fn insert_request_fields( self, key: impl Into<String>, value: impl Serialize, ) -> Self
Adds an entry to the request_fields field.
Sourcepub fn request_fields(
self,
request_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn request_fields( self, request_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Sets the request_fields field.
Sourcepub fn extend_request_fields(
self,
request_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn extend_request_fields( self, request_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Adds entries to the request_fields field.
Sourcepub fn insert_result_params(
self,
key: impl Into<String>,
value: SensitivityTaggedValue,
) -> Self
pub fn insert_result_params( self, key: impl Into<String>, value: SensitivityTaggedValue, ) -> Self
Adds an entry to the result_params field.
Sourcepub fn result_params(
self,
result_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>,
) -> Self
pub fn result_params( self, result_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>, ) -> Self
Sets the result_params field.
Sourcepub fn extend_result_params(
self,
result_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>,
) -> Self
pub fn extend_result_params( self, result_params: impl IntoIterator<Item = (impl Into<String>, SensitivityTaggedValue)>, ) -> Self
Adds entries to the result_params field.
Sourcepub fn insert_result_fields(
self,
key: impl Into<String>,
value: impl Serialize,
) -> Self
pub fn insert_result_fields( self, key: impl Into<String>, value: impl Serialize, ) -> Self
Adds an entry to the result_fields field.
Sourcepub fn result_fields(
self,
result_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn result_fields( self, result_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Sets the result_fields field.
Sourcepub fn extend_result_fields(
self,
result_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn extend_result_fields( self, result_fields: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Adds entries to the result_fields field.
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 result(self, result: AuditResult) -> Self
pub fn result(self, result: AuditResult) -> Self
Sets the result field.
Sourcepub fn build(self) -> AuditLogV3
pub fn build(self) -> AuditLogV3
Consumes the builder, returning a AuditLogV3.