pub struct WalletChainId(pub f64);Expand description
Better Auth’s number columns use SQLite INTEGER affinity.
SQLite may return either an integer or a real for the same column, including large JS chain IDs. PostgreSQL returns its INTEGER as i32. Retain the value as a JS Number without requiring a different persisted column type.
Tuple Fields§
§0: f64Trait Implementations§
Source§impl Clone for WalletChainId
impl Clone for WalletChainId
impl Copy for WalletChainId
Source§impl Debug for WalletChainId
impl Debug for WalletChainId
Source§impl<'r> Decode<'r, Postgres> for WalletChainId
Available on crate feature postgres only.
impl<'r> Decode<'r, Postgres> for WalletChainId
Available on crate feature
postgres only.Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Sqlite> for WalletChainId
Available on crate feature sqlite only.
impl<'r> Decode<'r, Sqlite> for WalletChainId
Available on crate feature
sqlite only.Source§fn decode(value: SqliteValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SqliteValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl From<f64> for WalletChainId
impl From<f64> for WalletChainId
Source§impl PartialEq for WalletChainId
impl PartialEq for WalletChainId
Source§impl SqlxValue for WalletChainId
impl SqlxValue for WalletChainId
Source§const KIND: ColumnKind = ColumnKind::Other
const KIND: ColumnKind = ColumnKind::Other
The column category used to coerce configured raw values.
fn into_sql_value(self) -> SqlValue
Source§fn from_sql_value(value: SqlValue) -> Result<Self, ValueTypeError>
fn from_sql_value(value: SqlValue) -> Result<Self, ValueTypeError>
Errors Read more
impl StructuralPartialEq for WalletChainId
Source§impl Type<Postgres> for WalletChainId
Available on crate feature postgres only.
impl Type<Postgres> for WalletChainId
Available on crate feature
postgres only.Source§fn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Sqlite> for WalletChainId
Available on crate feature sqlite only.
impl Type<Sqlite> for WalletChainId
Available on crate feature
sqlite only.Source§fn type_info() -> SqliteTypeInfo
fn type_info() -> SqliteTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SqliteTypeInfo) -> bool
fn compatible(ty: &SqliteTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Auto Trait Implementations§
impl Freeze for WalletChainId
impl RefUnwindSafe for WalletChainId
impl Send for WalletChainId
impl Sync for WalletChainId
impl Unpin for WalletChainId
impl UnsafeUnpin for WalletChainId
impl UnwindSafe for WalletChainId
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,
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