Struct Ydb

Source
pub struct Ydb;
Available on crate feature sqlx only.

Trait Implementations§

Source§

impl Clone for Ydb

Source§

fn clone(&self) -> Ydb

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Database for Ydb

Source§

const NAME: &'static str = "Ydb"

The display name for this database driver.
Source§

const URL_SCHEMES: &'static [&'static str]

The schemes for database URLs that should match this driver.
Source§

type Connection = YdbConnection

The concrete Connection implementation for this database.
Source§

type TransactionManager = YdbTransactionManager

The concrete TransactionManager implementation for this database.
Source§

type Row = YdbRow

The concrete Row implementation for this database.
Source§

type QueryResult = YdbQueryResult

The concrete QueryResult implementation for this database.
Source§

type Column = YdbColumn

The concrete Column implementation for this database.
Source§

type TypeInfo = YdbTypeInfo

The concrete TypeInfo implementation for this database.
Source§

type Value = YdbValue

The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database.
Source§

impl Debug for Ydb

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Decode<'_, Ydb> for Date

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for Datetime

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for Json

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for JsonDocument

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for String

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for Timestamp

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for Vec<u8>

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for bool

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for f32

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for f64

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for i16

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for i32

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for i64

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for i8

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for u16

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for u32

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for u64

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Decode<'_, Ydb> for u8

Source§

fn decode(value: &YdbValue) -> Result<Self, BoxDynError>

Decode a new value of this type using a raw value from the database.
Source§

impl Default for Ydb

Source§

fn default() -> Ydb

Returns the “default value” for a type. Read more
Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Date)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Datetime)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Json)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, JsonDocument)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, String)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Timestamp)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Vec<u8>)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, bool)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, f32)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, f64)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i16)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i32)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i64)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i8)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u16)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u32)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u64)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u8)

Source§

fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'q> Encode<'q, Ydb> for Migration

Available on crate feature migrate only.
Source§

fn encode_by_ref( &self, buf: &mut <Ydb as HasArguments<'q>>::ArgumentBuffer, ) -> IsNull

Writes the value of self into buf without moving self. Read more
Source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Source§

fn size_hint(&self) -> usize

Source§

impl<'a> HasArguments<'a> for Ydb

Source§

type Database = Ydb

Source§

type Arguments = YdbArguments

The concrete Arguments implementation for this database.
Source§

type ArgumentBuffer = HashMap<String, TypedValue>

The concrete type used as a buffer for arguments while encoding.
Source§

impl<'a> HasStatement<'a> for Ydb

Source§

type Database = Ydb

Source§

type Statement = YdbStatement

The concrete Statement implementation for this database.
Source§

impl<'a> HasValueRef<'a> for Ydb

Source§

type Database = Ydb

Source§

type ValueRef = &'a YdbValue

The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database.
Source§

impl IntoArguments<'_, Ydb> for YdbArguments

Source§

impl<'a> IntoArguments<'a, Ydb> for &YdbArguments

Source§

impl<S: ToString + Clone> Type<Ydb> for (S, Date)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, Datetime)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, Json)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, JsonDocument)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, String)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, Timestamp)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, Vec<u8>)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, bool)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, f32)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, f64)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, i16)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, i32)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, i64)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, i8)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, u16)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, u32)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, u64)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl<S: ToString + Clone> Type<Ydb> for (S, u8)

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for Date

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for Datetime

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for Json

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for JsonDocument

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for Migration

Available on crate feature migrate only.
Source§

fn type_info() -> <Ydb as Database>::TypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for String

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for Timestamp

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for Vec<u8>

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for bool

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for f32

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for f64

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for i16

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for i32

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for i64

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for i8

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for u16

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for u32

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for u64

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Type<Ydb> for u8

Source§

fn type_info() -> YdbTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Source§

fn compatible(ty: &<DB as Database>::TypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Source§

impl Copy for Ydb

Auto Trait Implementations§

§

impl Freeze for Ydb

§

impl RefUnwindSafe for Ydb

§

impl Send for Ydb

§

impl Sync for Ydb

§

impl Unpin for Ydb

§

impl UnwindSafe for Ydb

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,