pub struct Bind<'a> {
pub portal: Option<Oid>,
pub statement: Oid,
pub formats: &'a [PgValueFormat],
pub num_params: i16,
pub params: &'a [u8],
pub result_formats: &'a [PgValueFormat],
}
postgres
only.Fields§
§portal: Option<Oid>
The ID of the destination portal (None
selects the unnamed portal).
statement: Oid
The id of the source prepared statement.
formats: &'a [PgValueFormat]
The parameter format codes. Each must presently be zero (text) or one (binary).
There can be zero to indicate that there are no parameters or that the parameters all use the default format (text); or one, in which case the specified format code is applied to all parameters; or it can equal the actual number of parameters.
num_params: i16
The number of parameters.
params: &'a [u8]
The value of each parameter, in the indicated format.
result_formats: &'a [PgValueFormat]
The result-column format codes. Each must presently be zero (text) or one (binary).
There can be zero to indicate that there are no result columns or that the result columns should all use the default format (text); or one, in which case the specified format code is applied to all result columns (if any); or it can equal the actual number of result columns of the query.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Bind<'a>
impl<'a> RefUnwindSafe for Bind<'a>
impl<'a> Send for Bind<'a>
impl<'a> Sync for Bind<'a>
impl<'a> Unpin for Bind<'a>
impl<'a> UnwindSafe for Bind<'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
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> ⓘ
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> ⓘ
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 more