pub struct DecisionAuditConfig { /* private fields */ }Expand description
Configuration required to write Gatekeep audit events.
The source is application-owned and must be an absolute URI. Gatekeep does not invent an identity for the application or use a process-local default.
Implementations§
Source§impl DecisionAuditConfig
impl DecisionAuditConfig
Sourcepub fn new(source: impl Into<String>) -> Result<Self, DecisionAuditConfigError>
pub fn new(source: impl Into<String>) -> Result<Self, DecisionAuditConfigError>
Creates configuration using Gatekeep’s stable stream, event type, and JSON content type defaults.
§Errors
Returns DecisionAuditConfigError::Source when source is not an
absolute URI accepted by CloudEvents.
Sourcepub const fn source(&self) -> &EventSource
pub const fn source(&self) -> &EventSource
Returns the configured absolute event source.
Sourcepub const fn stream(&self) -> &StreamName
pub const fn stream(&self) -> &StreamName
Returns the fixed Gatekeep audit stream.
Sourcepub const fn event_type(&self) -> &EventType
pub const fn event_type(&self) -> &EventType
Returns the fixed Gatekeep audit event type.
Trait Implementations§
Source§impl Clone for DecisionAuditConfig
impl Clone for DecisionAuditConfig
Source§fn clone(&self) -> DecisionAuditConfig
fn clone(&self) -> DecisionAuditConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecisionAuditConfig
impl Debug for DecisionAuditConfig
impl Eq for DecisionAuditConfig
Source§impl PartialEq for DecisionAuditConfig
impl PartialEq for DecisionAuditConfig
impl StructuralPartialEq for DecisionAuditConfig
Auto Trait Implementations§
impl Freeze for DecisionAuditConfig
impl RefUnwindSafe for DecisionAuditConfig
impl Send for DecisionAuditConfig
impl Sync for DecisionAuditConfig
impl Unpin for DecisionAuditConfig
impl UnsafeUnpin for DecisionAuditConfig
impl UnwindSafe for DecisionAuditConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more