pub struct AccountRow {
pub id: Uuid,
pub provider: String,
pub account_ref: String,
pub status: String,
pub scopes: String,
pub expires_at: Option<DateTime<Utc>>,
pub last_refreshed_at: Option<DateTime<Utc>>,
}Expand description
One account row as the flow reads it — no enum types (the SQL casts
$n::o_auth_provider / selects provider::text), so runtime-bound
parameters resolve against the named Postgres types.
Fields§
§id: Uuid§provider: String§account_ref: String§status: String§scopes: String§expires_at: Option<DateTime<Utc>>§last_refreshed_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Debug for AccountRow
impl Debug for AccountRow
Source§impl From<AccountRow> for AccountStatus
impl From<AccountRow> for AccountStatus
Source§fn from(r: AccountRow) -> Self
fn from(r: AccountRow) -> Self
Converts to this type from the input type.
Source§impl<'a, R: Row> FromRow<'a, R> for AccountRow
impl<'a, R: Row> FromRow<'a, R> for AccountRow
Auto Trait Implementations§
impl Freeze for AccountRow
impl RefUnwindSafe for AccountRow
impl Send for AccountRow
impl Sync for AccountRow
impl Unpin for AccountRow
impl UnsafeUnpin for AccountRow
impl UnwindSafe for AccountRow
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> 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