pub trait SqlxVerificationModel: AuthVerification + SqlxModel {
// Required methods
fn id_column() -> &'static str;
fn identifier_column() -> &'static str;
fn value_column() -> &'static str;
fn expires_at_column() -> &'static str;
fn created_at_column() -> &'static str;
fn parse_id(id: &str) -> AuthResult<SqlValue>;
fn new_active(
id: Option<SqlValue>,
verification: CreateVerification,
now: DateTime<Utc>,
) -> ActiveRow;
// Provided methods
fn updated_at_column() -> Option<&'static str> { ... }
fn parse_reservation_id(
encoded: &str,
digest: [u8; 32],
) -> AuthResult<SqlValue> { ... }
}Required Methods§
fn id_column() -> &'static str
fn identifier_column() -> &'static str
fn value_column() -> &'static str
fn expires_at_column() -> &'static str
fn created_at_column() -> &'static str
Sourcefn parse_id(id: &str) -> AuthResult<SqlValue>
fn parse_id(id: &str) -> AuthResult<SqlValue>
§Errors
Returns an error if the identifier is invalid for this model’s ID type.
fn new_active( id: Option<SqlValue>, verification: CreateVerification, now: DateTime<Utc>, ) -> ActiveRow
Provided Methods§
fn updated_at_column() -> Option<&'static str>
Sourcefn parse_reservation_id(encoded: &str, digest: [u8; 32]) -> AuthResult<SqlValue>
fn parse_reservation_id(encoded: &str, digest: [u8; 32]) -> AuthResult<SqlValue>
Convert a deterministic reservation key to this schema’s ID type. String schemas use the upstream key. UUID schemas can accept the UUID derived from the same digest; numeric schemas must explicitly provide a collision-resistant reservation strategy instead of truncating it.
§Errors
Returns an error if the reservation identifier is invalid for this model’s ID type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".