pub struct IDValidationProfile {
pub name: String,
pub validator: ValidationProfileType,
}Expand description
ID validation profile for different use cases
Profiles provide preset ID validation configurations for common scenarios. Each profile includes a name and a validator instance.
§Built-in Profiles
- UUID: Strict UUID format validation (FraiseQL default)
- Numeric: Integer-based IDs (suitable for sequential IDs)
- ULID: Sortable unique identifiers (recommended for distributed systems)
- Opaque: Any string accepted (GraphQL spec compliant)
Fields§
§name: StringProfile name (e.g., “uuid”, “ulid”, “numeric”)
validator: ValidationProfileTypeValidator instance for this profile
Implementations§
Source§impl IDValidationProfile
impl IDValidationProfile
Trait Implementations§
Source§impl Clone for IDValidationProfile
impl Clone for IDValidationProfile
Source§fn clone(&self) -> IDValidationProfile
fn clone(&self) -> IDValidationProfile
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 moreAuto Trait Implementations§
impl Freeze for IDValidationProfile
impl RefUnwindSafe for IDValidationProfile
impl Send for IDValidationProfile
impl Sync for IDValidationProfile
impl Unpin for IDValidationProfile
impl UnsafeUnpin for IDValidationProfile
impl UnwindSafe for IDValidationProfile
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