#[non_exhaustive]pub struct LimitsConfig {
pub max_payload_bytes: u32,
pub max_label_value_bytes: u16,
pub max_external_string_bytes: u16,
}Expand description
Per-event byte limits (spec 15 § 2 + spec 11 § 6.2).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_payload_bytes: u32Per-event encoded payload cap. Default 256 KiB.
max_label_value_bytes: u16Per-label-value byte cap. Default 1 KiB.
max_external_string_bytes: u16Per-string cap for values originating outside the trust
boundary (HTTP route / method / User-Agent, bridge field
values). Default 256 bytes per CLAUDE.md ## Input Validation.
Spec 95 § 3.10 / P2-AH.
Values that exceed this length are truncated with a
…<truncated:N> suffix and the runtime emits one
ObsLabelOversized self-event per (field, route) (deduped).
Aggregate max_payload_bytes still applies as a backstop.
Trait Implementations§
Source§impl Clone for LimitsConfig
impl Clone for LimitsConfig
Source§fn clone(&self) -> LimitsConfig
fn clone(&self) -> LimitsConfig
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 LimitsConfig
impl Debug for LimitsConfig
Source§impl Default for LimitsConfig
impl Default for LimitsConfig
Source§impl<'de> Deserialize<'de> for LimitsConfig
impl<'de> Deserialize<'de> for LimitsConfig
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 LimitsConfig
impl RefUnwindSafe for LimitsConfig
impl Send for LimitsConfig
impl Sync for LimitsConfig
impl Unpin for LimitsConfig
impl UnsafeUnpin for LimitsConfig
impl UnwindSafe for LimitsConfig
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