pub struct Model {
pub id: String,
pub connection_record_id: String,
pub event_key: String,
pub sequence: i64,
pub kind: String,
pub actor_id: String,
pub credential_id: Option<String>,
pub created_at: DateTime<Utc>,
}Fields§
§id: String§connection_record_id: String§event_key: String§sequence: i64§kind: String§actor_id: String§credential_id: Option<String>§created_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
Source§impl SqlxModel for Model
impl SqlxModel for Model
Source§const COLUMN_NAMES: &'static [&'static str]
const COLUMN_NAMES: &'static [&'static str]
The names of
COLUMNS, for select and returning lists.Source§const FIELD_COLUMNS: &'static [(&'static str, &'static str)]
const FIELD_COLUMNS: &'static [(&'static str, &'static str)]
Rust field names paired with their physical columns.
Source§const PRIMARY_KEY: &'static str = "id"
const PRIMARY_KEY: &'static str = "id"
Physical primary-key column.
Source§const PROVIDER_VERIFICATION_COLUMN: Option<&'static str> = ::std::option::Option::None
const PROVIDER_VERIFICATION_COLUMN: Option<&'static str> = ::std::option::Option::None
Provider verification column whose SQLite storage may retain raw scalars.
Other model roles and handwritten models retain their existing projection.
Source§fn into_active(self) -> ActiveRow
fn into_active(self) -> ActiveRow
Every column as an unchanged value.
Source§fn from_active(active: ActiveRow) -> AuthResult<Self>
fn from_active(active: ActiveRow) -> AuthResult<Self>
Materialize a model without a database write. Omitted optional fields
become
None; other omitted fields fail. Read moreSource§fn column_value(column: &str, value: SqlValue) -> SqlValue
fn column_value(column: &str, value: SqlValue) -> SqlValue
Apply this physical column’s binding override without changing its Rust
String representation. Ordinary TEXT/VARCHAR columns remain unchanged.
Source§fn timestamp_value(column: &str, value: DateTime<Utc>) -> SqlValue
fn timestamp_value(column: &str, value: DateTime<Utc>) -> SqlValue
Bind the auth UTC clock using this model column’s timestamp wire type.
fn column_kind(column: &str) -> ColumnKind
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more