Struct taos_query::common::raw::PrettyBlock
source · pub struct PrettyBlock<'a> { /* private fields */ }
Methods from Deref<Target = RawBlock>§
pub fn group_id(&self) -> u64
pub fn table_name(&self) -> Option<&str>
pub fn tmq_db_name(&self) -> Option<&str>
pub fn schemas(&self) -> &[ColSchema]
sourcepub fn field_names(&self) -> &[String]
pub fn field_names(&self) -> &[String]
Get field names.
sourcepub fn columns(&self) -> Iter<'_, ColumnView>
pub fn columns(&self) -> Iter<'_, ColumnView>
Data view in columns.
pub fn column_views(&self) -> &[ColumnView]
pub fn deserialize<'de, 'a: 'de, T>( &'a self ) -> Map<RowsIter<'_>, fn(_: RowView<'a>) -> Result<T, Error>>where T: Deserialize<'de>,
pub fn as_raw_bytes(&self) -> &[u8] ⓘ
pub fn is_null(&self, row: usize, col: usize) -> bool
sourcepub unsafe fn get_raw_value_unchecked(
&self,
row: usize,
col: usize
) -> (Ty, u32, *const c_void)
pub unsafe fn get_raw_value_unchecked( &self, row: usize, col: usize ) -> (Ty, u32, *const c_void)
pub fn get_ref(&self, row: usize, col: usize) -> Option<BorrowedValue<'_>>
sourcepub unsafe fn get_ref_unchecked(
&self,
row: usize,
col: usize
) -> BorrowedValue<'_>
pub unsafe fn get_ref_unchecked( &self, row: usize, col: usize ) -> BorrowedValue<'_>
Get one value at (row, col)
of the block.
Safety
Ensure that row
and col
not exceed the limit of the block.
pub fn to_values(&self) -> Vec<Vec<Value>>
pub fn write<W: Write>(&self, _wtr: W) -> Result<usize>
pub fn fields(&self) -> Vec<Field>
pub fn pretty_format(&self) -> PrettyBlock<'_>
pub fn to_create(&self) -> Option<MetaCreate>
Trait Implementations§
source§impl<'a> Deref for PrettyBlock<'a>
impl<'a> Deref for PrettyBlock<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PrettyBlock<'a>
impl<'a> Send for PrettyBlock<'a>
impl<'a> Sync for PrettyBlock<'a>
impl<'a> Unpin for PrettyBlock<'a>
impl<'a> !UnwindSafe for PrettyBlock<'a>
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