mysql_common::proto

Trait MySerialize

Source
pub trait MySerialize {
    // Required method
    fn serialize(&self, buf: &mut Vec<u8>);
}
Expand description

Serialization for various MySql types.

Required Methods§

Source

fn serialize(&self, buf: &mut Vec<u8>)

Serializes self into the buf.

Implementations on Foreign Types§

Source§

impl MySerialize for f64

Source§

fn serialize(&self, buf: &mut Vec<u8>)

Source§

impl MySerialize for [u8]

Source§

fn serialize(&self, buf: &mut Vec<u8>)

Source§

impl<const LEN: usize> MySerialize for SmallVec<[u8; LEN]>
where [u8; LEN]: Array<Item = u8>,

Source§

fn serialize(&self, buf: &mut Vec<u8>)

Source§

impl<const LEN: usize> MySerialize for [u8; LEN]

Source§

fn serialize(&self, buf: &mut Vec<u8>)

Implementors§

Source§

impl MySerialize for EventData<'_>

Source§

impl MySerialize for RowsEventData<'_>

Source§

impl MySerialize for AuthPlugin<'_>

Source§

impl MySerialize for AuthPluginData<'_>

Source§

impl MySerialize for ErrPacket<'_>

Source§

impl MySerialize for SessionStateChange<'_>

Source§

impl MySerialize for Value

Source§

impl MySerialize for AnonymousGtidEvent

Source§

impl MySerialize for BeginLoadQueryEvent<'_>

Source§

impl MySerialize for BinlogEventHeader

Source§

impl MySerialize for ColumnCharsets<'_>

Source§

impl MySerialize for ColumnName<'_>

Source§

impl MySerialize for ColumnNames<'_>

Source§

impl MySerialize for DefaultCharset<'_>

Source§

impl MySerialize for DeleteRowsEvent<'_>

Source§

impl MySerialize for DeleteRowsEventV1<'_>

Source§

impl MySerialize for EnumStrValue<'_>

Source§

impl MySerialize for EnumStrValues<'_>

Source§

impl MySerialize for EnumsStrValues<'_>

Source§

impl MySerialize for ExecuteLoadQueryEvent<'_>

Source§

impl MySerialize for FormatDescriptionEvent<'_>

Source§

impl MySerialize for GeometryTypes<'_>

Source§

impl MySerialize for GtidEvent

Source§

impl MySerialize for IncidentEvent<'_>

Source§

impl MySerialize for IntvarEvent

Source§

impl MySerialize for NonDefaultCharset

Source§

impl MySerialize for PartialUpdateRowsEvent<'_>

Source§

impl MySerialize for PrimaryKeyWithPrefix

Source§

impl MySerialize for PrimaryKeysWithPrefix<'_>

Source§

impl MySerialize for QueryEvent<'_>

Source§

impl MySerialize for RandEvent

Source§

impl MySerialize for RotateEvent<'_>

Source§

impl MySerialize for RowsEvent<'_>

Source§

impl MySerialize for RowsQueryEvent<'_>

Source§

impl MySerialize for SetStrValue<'_>

Source§

impl MySerialize for SetStrValues<'_>

Source§

impl MySerialize for SetsStrValues<'_>

Source§

impl MySerialize for SimplePrimaryKey<'_>

Source§

impl MySerialize for StatusVars<'_>

Source§

impl MySerialize for TableMapEvent<'_>

Source§

impl MySerialize for TransactionPayloadEvent<'_>

Source§

impl MySerialize for UpdateRowsEvent<'_>

Source§

impl MySerialize for UpdateRowsEventV1<'_>

Source§

impl MySerialize for UserVarEvent<'_>

Source§

impl MySerialize for WriteRowsEvent<'_>

Source§

impl MySerialize for WriteRowsEventV1<'_>

Source§

impl MySerialize for XidEvent

Source§

impl MySerialize for JsonbString<'_>

Source§

impl MySerialize for PublicKeyRequest

Source§

impl MySerialize for Gtids<'_>

Source§

impl MySerialize for Schema<'_>

Source§

impl MySerialize for SystemVariable<'_>

Source§

impl MySerialize for TransactionCharacteristics<'_>

Source§

impl MySerialize for TransactionState<'_>

Source§

impl MySerialize for Unsupported<'_>

Source§

impl MySerialize for AuthMoreData<'_>

Source§

impl MySerialize for AuthSwitchRequest<'_>

Source§

impl MySerialize for Column

Source§

impl MySerialize for ComBinlogDump<'_>

Source§

impl MySerialize for ComBinlogDumpGtid<'_>

Source§

impl MySerialize for ComChangeUser<'_>

Source§

impl MySerialize for ComRegisterSlave<'_>

Source§

impl MySerialize for ComStmtClose

Source§

impl MySerialize for ComStmtExecuteRequest<'_>

Source§

impl MySerialize for ComStmtSendLongData<'_>

Source§

impl MySerialize for ComTableDump<'_>

Source§

impl MySerialize for GnoInterval

Source§

impl MySerialize for HandshakePacket<'_>

Source§

impl MySerialize for HandshakeResponse<'_>

Source§

impl MySerialize for LocalInfilePacket<'_>

Source§

impl MySerialize for OldAuthSwitchRequest

Source§

impl MySerialize for ProgressReport<'_>

Source§

impl MySerialize for PublicKeyResponse<'_>

Source§

impl MySerialize for SemiSyncAckPacket<'_>

Source§

impl MySerialize for ServerError<'_>

Source§

impl MySerialize for SessionStateInfo<'_>

Source§

impl MySerialize for Sid<'_>

Source§

impl MySerialize for SqlState

Source§

impl MySerialize for SslRequest

Source§

impl MySerialize for StmtPacket

Source§

impl<'a> MySerialize for ComChangeUserMoreData<'a>

Source§

impl<T, U> MySerialize for Either<T, U>
where T: MySerialize, U: MySerialize,

Source§

impl<T, U> MySerialize for Const<T, U>
where T: Copy + Into<U::Primitive>, U: IntRepr,

Source§

impl<T, U> MySerialize for Seq<'_, T, U>
where T: Clone + MySerialize, U: SeqRepr,

Source§

impl<T, const LEN: usize> MySerialize for ConstBytes<T, LEN>
where T: ConstBytesValue<LEN>,

Source§

impl<T, const N: u8> MySerialize for ConstU8<T, N>

Source§

impl<T, const N: u32> MySerialize for ConstU32<T, N>

Source§

impl<T: Flags, U> MySerialize for RawFlags<T, U>
where U: IntRepr<Primitive = T::Bits>,

Source§

impl<T: BytesRepr> MySerialize for RawBytes<'_, T>

Source§

impl<T: IntRepr> MySerialize for RawInt<T>

Source§

impl<T: IntRepr<Primitive = u8>, U> MySerialize for RawSeq<'_, T, U>

Source§

impl<T: IntRepr, U> MySerialize for RawConst<T, U>

Source§

impl<const LEN: usize> MySerialize for Skip<LEN>