pub struct HostileSchemaLimits {
pub max_schema_bytes: usize,
pub max_object_depth: usize,
pub max_properties_per_object: usize,
pub max_enum_values_per_field: usize,
pub max_string_pattern_bytes: usize,
pub allow_remote_refs: bool,
pub allow_custom_formats: bool,
}Expand description
Holds hostile schema limits application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§max_schema_bytes: usizemax schema bytes used for bounds checks, summaries, or truncation evidence.
max_object_depth: usizeMaximum allowed object depth. Use it to keep execution, output, or diagnostics bounded.
max_properties_per_object: usizeMaximum allowed properties per object. Use it to keep execution, output, or diagnostics bounded.
max_enum_values_per_field: usizeMaximum allowed enum values per field. Use it to keep execution, output, or diagnostics bounded.
max_string_pattern_bytes: usizemax string pattern bytes used for bounds checks, summaries, or truncation evidence.
allow_remote_refs: boolTyped allow remote refs references. Resolving them is separate from constructing this record.
allow_custom_formats: boolBoolean policy/capability flag for whether allow custom formats is enabled.
Trait Implementations§
Source§impl Clone for HostileSchemaLimits
impl Clone for HostileSchemaLimits
Source§fn clone(&self) -> HostileSchemaLimits
fn clone(&self) -> HostileSchemaLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HostileSchemaLimits
impl Debug for HostileSchemaLimits
Source§impl Default for HostileSchemaLimits
impl Default for HostileSchemaLimits
Source§impl<'de> Deserialize<'de> for HostileSchemaLimits
impl<'de> Deserialize<'de> for HostileSchemaLimits
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>,
Source§impl PartialEq for HostileSchemaLimits
impl PartialEq for HostileSchemaLimits
Source§fn eq(&self, other: &HostileSchemaLimits) -> bool
fn eq(&self, other: &HostileSchemaLimits) -> bool
self and other values to be equal, and is used by ==.