pub struct ValidationConfig {
pub mode: ValidationMode,
pub allowed_kya_versions: Vec<String>,
pub required_fields: Vec<String>,
pub enforce_controller_match: bool,
pub check_external_links: bool,
pub link_checks: Vec<LinkCheckConfig>,
pub require_all_proofs: bool,
pub required_field_pairs: Vec<(String, String)>,
pub allowed_controllers: Vec<String>,
pub required_vc_types: Vec<String>,
pub attestation_checks: Vec<AttestationCheckConfig>,
}Fields§
§mode: ValidationMode§allowed_kya_versions: Vec<String>§required_fields: Vec<String>§enforce_controller_match: bool§check_external_links: bool§link_checks: Vec<LinkCheckConfig>§require_all_proofs: bool§required_field_pairs: Vec<(String, String)>§allowed_controllers: Vec<String>§required_vc_types: Vec<String>§attestation_checks: Vec<AttestationCheckConfig>Implementations§
Source§impl ValidationConfig
impl ValidationConfig
pub fn self_audit() -> Self
pub fn lenient() -> Self
pub fn strict() -> Self
pub fn client_audit() -> Self
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 ValidationConfig
impl Debug for ValidationConfig
Source§impl Default for ValidationConfig
impl Default for ValidationConfig
Source§impl<'de> Deserialize<'de> for ValidationConfigwhere
ValidationConfig: Default,
impl<'de> Deserialize<'de> for ValidationConfigwhere
ValidationConfig: Default,
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 ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnsafeUnpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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