pub struct InputProcessingConfig {
pub id_policy: IDPolicy,
pub validate_ids: bool,
pub id_field_names: HashSet<String>,
}Expand description
Configuration for input processing
Fields§
§id_policy: IDPolicyID policy to enforce for ID fields
validate_ids: boolEnable ID validation on all inputs (recommended)
id_field_names: HashSet<String>List of field names known to be ID types (in a real implementation, this would come from the schema)
Implementations§
Source§impl InputProcessingConfig
impl InputProcessingConfig
Sourcepub fn add_id_field(&mut self, field_name: String)
pub fn add_id_field(&mut self, field_name: String)
Add a custom ID field name to validation
Sourcepub fn strict_uuid() -> Self
pub fn strict_uuid() -> Self
Create a configuration for strict UUID validation
Trait Implementations§
Source§impl Clone for InputProcessingConfig
impl Clone for InputProcessingConfig
Source§fn clone(&self) -> InputProcessingConfig
fn clone(&self) -> InputProcessingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 InputProcessingConfig
impl Debug for InputProcessingConfig
Auto Trait Implementations§
impl Freeze for InputProcessingConfig
impl RefUnwindSafe for InputProcessingConfig
impl Send for InputProcessingConfig
impl Sync for InputProcessingConfig
impl Unpin for InputProcessingConfig
impl UnsafeUnpin for InputProcessingConfig
impl UnwindSafe for InputProcessingConfig
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