#[non_exhaustive]pub struct ResultSetMetadataBuilder { /* private fields */ }Expand description
A builder for ResultSetMetadata.
Implementations§
Source§impl ResultSetMetadataBuilder
impl ResultSetMetadataBuilder
Sourcepub fn column_info(self, input: ColumnInfo) -> Self
pub fn column_info(self, input: ColumnInfo) -> Self
Appends an item to column_info.
To override the contents of this collection use set_column_info.
Information about the columns returned in a query result metadata.
Sourcepub fn set_column_info(self, input: Option<Vec<ColumnInfo>>) -> Self
pub fn set_column_info(self, input: Option<Vec<ColumnInfo>>) -> Self
Information about the columns returned in a query result metadata.
Sourcepub fn get_column_info(&self) -> &Option<Vec<ColumnInfo>>
pub fn get_column_info(&self) -> &Option<Vec<ColumnInfo>>
Information about the columns returned in a query result metadata.
Sourcepub fn build(self) -> ResultSetMetadata
pub fn build(self) -> ResultSetMetadata
Consumes the builder and constructs a ResultSetMetadata.
Trait Implementations§
Source§impl Clone for ResultSetMetadataBuilder
impl Clone for ResultSetMetadataBuilder
Source§fn clone(&self) -> ResultSetMetadataBuilder
fn clone(&self) -> ResultSetMetadataBuilder
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 ResultSetMetadataBuilder
impl Debug for ResultSetMetadataBuilder
Source§impl Default for ResultSetMetadataBuilder
impl Default for ResultSetMetadataBuilder
Source§fn default() -> ResultSetMetadataBuilder
fn default() -> ResultSetMetadataBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResultSetMetadataBuilder
impl PartialEq for ResultSetMetadataBuilder
impl StructuralPartialEq for ResultSetMetadataBuilder
Auto Trait Implementations§
impl Freeze for ResultSetMetadataBuilder
impl RefUnwindSafe for ResultSetMetadataBuilder
impl Send for ResultSetMetadataBuilder
impl Sync for ResultSetMetadataBuilder
impl Unpin for ResultSetMetadataBuilder
impl UnsafeUnpin for ResultSetMetadataBuilder
impl UnwindSafe for ResultSetMetadataBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.