pub struct AuditEntryBuilder(/* private fields */);Expand description
Constructor for AuditEntry.
Implementations§
Source§impl AuditEntryBuilder
impl AuditEntryBuilder
Sourcepub fn new(
version: impl Into<String>,
event: EventName,
trigger: impl Into<String>,
api: ApiDetails,
) -> Self
pub fn new( version: impl Into<String>, event: EventName, trigger: impl Into<String>, api: ApiDetails, ) -> Self
Create a new builder with all required fields.
pub fn version(self, version: impl Into<String>) -> Self
pub fn event(self, event: EventName) -> Self
pub fn api(self, api_details: ApiDetails) -> Self
pub fn deployment_id(self, id: impl Into<String>) -> Self
pub fn site_name(self, name: impl Into<String>) -> Self
pub fn time(self, time: Timestamp) -> Self
pub fn entry_type(self, entry_type: impl Into<String>) -> Self
pub fn remote_host(self, host: impl Into<String>) -> Self
pub fn request_id(self, id: impl Into<String>) -> Self
pub fn user_agent(self, agent: impl Into<String>) -> Self
pub fn req_path(self, path: impl Into<String>) -> Self
pub fn req_host(self, host: impl Into<String>) -> Self
pub fn req_node(self, node: impl Into<String>) -> Self
pub fn req_claims(self, claims: HashMap<String, Value>) -> Self
pub fn req_query(self, query: HashMap<String, String>) -> Self
pub fn req_header(self, header: HashMap<String, String>) -> Self
pub fn resp_header(self, header: HashMap<String, String>) -> Self
pub fn access_key(self, key: impl Into<String>) -> Self
pub fn parent_user(self, user: impl Into<String>) -> Self
pub fn error(self, error: impl Into<String>) -> Self
Sourcepub fn build(self) -> AuditEntry
pub fn build(self) -> AuditEntry
Construct the final AuditEntry.
Auto Trait Implementations§
impl Freeze for AuditEntryBuilder
impl RefUnwindSafe for AuditEntryBuilder
impl Send for AuditEntryBuilder
impl Sync for AuditEntryBuilder
impl Unpin for AuditEntryBuilder
impl UnsafeUnpin for AuditEntryBuilder
impl UnwindSafe for AuditEntryBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request