Trait mysql_common::proto::MyDeserialize
source · pub trait MyDeserialize<'de>: Sized {
type Ctx;
const SIZE: Option<usize>;
// Required method
fn deserialize(ctx: Self::Ctx, buf: &mut ParseBuf<'de>) -> Result<Self>;
}
Expand description
Deserialization for various MySql types.
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn deserialize(ctx: Self::Ctx, buf: &mut ParseBuf<'de>) -> Result<Self>
fn deserialize(ctx: Self::Ctx, buf: &mut ParseBuf<'de>) -> Result<Self>
Deserializes self from the given buf
.
Imlementation must consume corresponding amount of bytes from the buf
.
§Panic
Implementation must panic on insufficient buffer length if Self::SIZE.is_some()
.
One should use ParseBuf::checked_parse
for checked deserialization.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<'de> MyDeserialize<'de> for &'de [u8]
impl<'de> MyDeserialize<'de> for &'de [u8]
source§impl<'de> MyDeserialize<'de> for f64
impl<'de> MyDeserialize<'de> for f64
source§impl<'de, const LEN: usize> MyDeserialize<'de> for SmallVec<[u8; LEN]>
impl<'de, const LEN: usize> MyDeserialize<'de> for SmallVec<[u8; LEN]>
This ad-hock impl parses length-encoded string into a SmallVec
.
Implementors§
source§impl<'de> MyDeserialize<'de> for Value<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for Value<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for BinlogValue<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for BinlogValue<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for AuthPlugin<'de>
impl<'de> MyDeserialize<'de> for AuthPlugin<'de>
source§impl<'de> MyDeserialize<'de> for ErrPacket<'de>
impl<'de> MyDeserialize<'de> for ErrPacket<'de>
source§impl<'de> MyDeserialize<'de> for SessionStateChange<'de>
impl<'de> MyDeserialize<'de> for SessionStateChange<'de>
source§impl<'de> MyDeserialize<'de> for AnonymousGtidEvent
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for AnonymousGtidEvent
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for BeginLoadQueryEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for BeginLoadQueryEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for BinlogEventHeader
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for BinlogEventHeader
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for ColumnCharsets<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for ColumnCharsets<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for ColumnName<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for ColumnName<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for ColumnNames<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for ColumnNames<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for DefaultCharset<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for DefaultCharset<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for DeleteRowsEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for DeleteRowsEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for DeleteRowsEventV1<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for DeleteRowsEventV1<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for EnumStrValue<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for EnumStrValue<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for EnumStrValues<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for EnumStrValues<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for EnumsStrValues<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for EnumsStrValues<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for ExecuteLoadQueryEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for ExecuteLoadQueryEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for FormatDescriptionEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for FormatDescriptionEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for GeometryTypes<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for GeometryTypes<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for GtidEvent
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for GtidEvent
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for IncidentEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for IncidentEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for IntvarEvent
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for IntvarEvent
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for NonDefaultCharset
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for NonDefaultCharset
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for PartialUpdateRowsEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for PartialUpdateRowsEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for PrimaryKeyWithPrefix
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for PrimaryKeyWithPrefix
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for PrimaryKeysWithPrefix<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for PrimaryKeysWithPrefix<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for QueryEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for QueryEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for RandEvent
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for RandEvent
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for RotateEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for RotateEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for RowsEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for RowsEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for RowsQueryEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for RowsQueryEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for SetStrValue<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for SetStrValue<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for SetStrValues<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for SetStrValues<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for SetsStrValues<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for SetsStrValues<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for SimplePrimaryKey<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for SimplePrimaryKey<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for StatusVars<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for StatusVars<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for TableMapEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for TableMapEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for TransactionPayloadEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for TransactionPayloadEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for UpdateRowsEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for UpdateRowsEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for UpdateRowsEventV1<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for UpdateRowsEventV1<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for UserVarEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for UserVarEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for WriteRowsEvent<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for WriteRowsEvent<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for WriteRowsEventV1<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for WriteRowsEventV1<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for XidEvent
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for XidEvent
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for JsonbString<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for JsonbString<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for JsonDiff<'de>
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for JsonDiff<'de>
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for BinlogRow
Available on crate feature binlog
only.
impl<'de> MyDeserialize<'de> for BinlogRow
Available on crate feature
binlog
only.source§impl<'de> MyDeserialize<'de> for ParseBuf<'de>
impl<'de> MyDeserialize<'de> for ParseBuf<'de>
source§impl<'de> MyDeserialize<'de> for PublicKeyRequest
impl<'de> MyDeserialize<'de> for PublicKeyRequest
source§impl<'de> MyDeserialize<'de> for Gtids<'de>
impl<'de> MyDeserialize<'de> for Gtids<'de>
source§impl<'de> MyDeserialize<'de> for Schema<'de>
impl<'de> MyDeserialize<'de> for Schema<'de>
source§impl<'de> MyDeserialize<'de> for SystemVariable<'de>
impl<'de> MyDeserialize<'de> for SystemVariable<'de>
source§impl<'de> MyDeserialize<'de> for TransactionCharacteristics<'de>
impl<'de> MyDeserialize<'de> for TransactionCharacteristics<'de>
source§impl<'de> MyDeserialize<'de> for TransactionState<'de>
impl<'de> MyDeserialize<'de> for TransactionState<'de>
source§impl<'de> MyDeserialize<'de> for Unsupported<'de>
impl<'de> MyDeserialize<'de> for Unsupported<'de>
source§impl<'de> MyDeserialize<'de> for AuthMoreData<'de>
impl<'de> MyDeserialize<'de> for AuthMoreData<'de>
source§impl<'de> MyDeserialize<'de> for AuthSwitchRequest<'de>
impl<'de> MyDeserialize<'de> for AuthSwitchRequest<'de>
source§impl<'de> MyDeserialize<'de> for ComBinlogDump<'de>
impl<'de> MyDeserialize<'de> for ComBinlogDump<'de>
source§impl<'de> MyDeserialize<'de> for ComBinlogDumpGtid<'de>
impl<'de> MyDeserialize<'de> for ComBinlogDumpGtid<'de>
source§impl<'de> MyDeserialize<'de> for ComChangeUser<'de>
impl<'de> MyDeserialize<'de> for ComChangeUser<'de>
source§impl<'de> MyDeserialize<'de> for ComChangeUserMoreData<'de>
impl<'de> MyDeserialize<'de> for ComChangeUserMoreData<'de>
source§impl<'de> MyDeserialize<'de> for ComRegisterSlave<'de>
impl<'de> MyDeserialize<'de> for ComRegisterSlave<'de>
source§impl<'de> MyDeserialize<'de> for ComTableDump<'de>
impl<'de> MyDeserialize<'de> for ComTableDump<'de>
source§impl<'de> MyDeserialize<'de> for GnoInterval
impl<'de> MyDeserialize<'de> for GnoInterval
source§impl<'de> MyDeserialize<'de> for HandshakePacket<'de>
impl<'de> MyDeserialize<'de> for HandshakePacket<'de>
source§impl<'de> MyDeserialize<'de> for HandshakeResponse<'de>
impl<'de> MyDeserialize<'de> for HandshakeResponse<'de>
source§impl<'de> MyDeserialize<'de> for LocalInfilePacket<'de>
impl<'de> MyDeserialize<'de> for LocalInfilePacket<'de>
source§impl<'de> MyDeserialize<'de> for OldAuthSwitchRequest
impl<'de> MyDeserialize<'de> for OldAuthSwitchRequest
source§impl<'de> MyDeserialize<'de> for ProgressReport<'de>
impl<'de> MyDeserialize<'de> for ProgressReport<'de>
source§impl<'de> MyDeserialize<'de> for PublicKeyResponse<'de>
impl<'de> MyDeserialize<'de> for PublicKeyResponse<'de>
source§impl<'de> MyDeserialize<'de> for SemiSyncAckPacket<'de>
impl<'de> MyDeserialize<'de> for SemiSyncAckPacket<'de>
source§impl<'de> MyDeserialize<'de> for ServerError<'de>
impl<'de> MyDeserialize<'de> for ServerError<'de>
source§impl<'de> MyDeserialize<'de> for SessionStateInfo<'de>
impl<'de> MyDeserialize<'de> for SessionStateInfo<'de>
source§impl<'de> MyDeserialize<'de> for Sid<'de>
impl<'de> MyDeserialize<'de> for Sid<'de>
source§impl<'de> MyDeserialize<'de> for SslRequest
impl<'de> MyDeserialize<'de> for SslRequest
source§impl<'de> MyDeserialize<'de> for StmtPacket
impl<'de> MyDeserialize<'de> for StmtPacket
source§impl<'de> MyDeserialize<'de> for ValueDeserializer<BinValue>
impl<'de> MyDeserialize<'de> for ValueDeserializer<BinValue>
const SIZE: Option<usize> = None
type Ctx = (ColumnType, ColumnFlags)
source§impl<'de> MyDeserialize<'de> for ValueDeserializer<TextValue>
impl<'de> MyDeserialize<'de> for ValueDeserializer<TextValue>
source§impl<'de, S: SerializationSide> MyDeserialize<'de> for RowDeserializer<S, Binary>
impl<'de, S: SerializationSide> MyDeserialize<'de> for RowDeserializer<S, Binary>
source§impl<'de, T> MyDeserialize<'de> for RowDeserializer<T, Text>
impl<'de, T> MyDeserialize<'de> for RowDeserializer<T, Text>
source§impl<'de, T, U> MyDeserialize<'de> for Either<T, U>where
T: MyDeserialize<'de>,
U: MyDeserialize<'de>,
impl<'de, T, U> MyDeserialize<'de> for Either<T, U>where
T: MyDeserialize<'de>,
U: MyDeserialize<'de>,
source§impl<'de, T, U> MyDeserialize<'de> for Const<T, U>
impl<'de, T, U> MyDeserialize<'de> for Const<T, U>
source§impl<'de, T, U> MyDeserialize<'de> for Seq<'de, T, U>
impl<'de, T, U> MyDeserialize<'de> for Seq<'de, T, U>
source§impl<'de, T, const LEN: usize> MyDeserialize<'de> for ConstBytes<T, LEN>where
T: Default + ConstBytesValue<LEN>,
impl<'de, T, const LEN: usize> MyDeserialize<'de> for ConstBytes<T, LEN>where
T: Default + ConstBytesValue<LEN>,
source§impl<'de, T, const N: u8> MyDeserialize<'de> for ConstU8<T, N>
impl<'de, T, const N: u8> MyDeserialize<'de> for ConstU8<T, N>
source§impl<'de, T, const N: u32> MyDeserialize<'de> for ConstU32<T, N>
impl<'de, T, const N: u32> MyDeserialize<'de> for ConstU32<T, N>
source§impl<'de, T: StorageFormat, U: ComplexType> MyDeserialize<'de> for ComplexValue<'de, T, U>
Available on crate feature binlog
only.
impl<'de, T: StorageFormat, U: ComplexType> MyDeserialize<'de> for ComplexValue<'de, T, U>
Available on crate feature
binlog
only.