pub enum BaseSqlTypes {
Array(Vec<BaseSqlTypes>),
Bool(bool),
Integer(u32),
Text(String),
Uuid(Uuid),
}
Variants§
Implementations§
Source§impl BaseSqlTypes
impl BaseSqlTypes
pub fn deserialize( target_type: &BaseSqlTypesMapper, buffer: &mut impl Buf, ) -> Result<Self, BaseSqlTypesError>
pub fn parse( target_type: BaseSqlTypesMapper, buffer: &str, ) -> Result<Self, BaseSqlTypesError>
pub fn serialize(&self, buffer: &mut impl BufMut)
Sourcepub fn type_matches(&self, right: &BaseSqlTypesMapper) -> bool
pub fn type_matches(&self, right: &BaseSqlTypesMapper) -> bool
Used to map if we have the types linked up right.
Trait Implementations§
Source§impl Clone for BaseSqlTypes
impl Clone for BaseSqlTypes
Source§fn clone(&self) -> BaseSqlTypes
fn clone(&self) -> BaseSqlTypes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaseSqlTypes
impl Debug for BaseSqlTypes
Source§impl Display for BaseSqlTypes
impl Display for BaseSqlTypes
Source§impl Ord for BaseSqlTypes
impl Ord for BaseSqlTypes
Source§fn cmp(&self, other: &BaseSqlTypes) -> Ordering
fn cmp(&self, other: &BaseSqlTypes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BaseSqlTypes
impl PartialEq for BaseSqlTypes
Source§impl PartialOrd for BaseSqlTypes
impl PartialOrd for BaseSqlTypes
Source§impl SelfEncodedSize for BaseSqlTypes
impl SelfEncodedSize for BaseSqlTypes
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Provides the expected size of the serialized form so repeated serialization is not needed to find space.
impl Eq for BaseSqlTypes
impl StructuralPartialEq for BaseSqlTypes
Auto Trait Implementations§
impl Freeze for BaseSqlTypes
impl RefUnwindSafe for BaseSqlTypes
impl Send for BaseSqlTypes
impl Sync for BaseSqlTypes
impl Unpin for BaseSqlTypes
impl UnwindSafe for BaseSqlTypes
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