pub struct CustomColumnDef {
pub name: String,
pub kind: ValueKind,
pub required: bool,
pub required_since: Option<u64>,
}Expand description
Declaration of an extra audit-log column. Custom columns are themselves
registry-managed: definitions are persisted in the meta table and values are
validated against kind on every append.
Fields§
§name: String§kind: ValueKind§required: bool§required_since: Option<u64>required is only enforced for logs whose event time is at or after
this UTC-micros instant. Filled in automatically by
crate::AuditStore::define_custom_column — making a column required
must not retroactively invalidate events that were created (e.g.
parked in a DLQ) before the requirement existed, or their redrive
would fail forever.
Implementations§
Trait Implementations§
Source§impl Clone for CustomColumnDef
impl Clone for CustomColumnDef
Source§fn clone(&self) -> CustomColumnDef
fn clone(&self) -> CustomColumnDef
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 CustomColumnDef
impl Debug for CustomColumnDef
Source§impl<'de> Deserialize<'de> for CustomColumnDef
impl<'de> Deserialize<'de> for CustomColumnDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CustomColumnDef
impl RefUnwindSafe for CustomColumnDef
impl Send for CustomColumnDef
impl Sync for CustomColumnDef
impl Unpin for CustomColumnDef
impl UnsafeUnpin for CustomColumnDef
impl UnwindSafe for CustomColumnDef
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