Struct taos_query::common::Field
source · [−]pub struct Field { /* private fields */ }Expand description
A Field represents the name and data type of one column or tag.
For example, a table as “create table tb1 (ts timestamp, n nchar(100))”.
When query with “select * from tb1”, you will get two fields:
{ name: "ts", ty: Timestamp, bytes: 8 }, aTIMESTAMPfield with namets, bytes length 8 which is the byte-width ofi64.{ name: "n", ty: NChar, bytes: 100 }, aNCHARfiled with namen, bytes length 100 which is the length of the variable-length data.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Inlinable for Field
impl Inlinable for Field
sourcefn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
sourcefn read_inlined<R: Read>(reader: &mut R) -> Result<Self>
fn read_inlined<R: Read>(reader: &mut R) -> Result<Self>
Read inlined bytes into object.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts
) -> Result<usize>
fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts
) -> Result<usize>
Write inlined bytes with specific options
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
sourceimpl PartialEq<Field> for Field
impl PartialEq<Field> for Field
impl Eq for Field
impl StructuralEq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more