pub struct Bind {
pub portal: String,
pub statement: String,
pub parameter_formats: Vec<FormatCode>,
pub parameters: Vec<Option<Vec<u8>>>,
pub result_formats: Vec<FormatCode>,
}Fields§
§portal: String§statement: String§parameter_formats: Vec<FormatCode>§parameters: Vec<Option<Vec<u8>>>§result_formats: Vec<FormatCode>Implementations§
Source§impl Bind
impl Bind
Sourcepub fn resolved_parameter_formats(&self) -> Result<Vec<FormatCode>, PgWireError>
pub fn resolved_parameter_formats(&self) -> Result<Vec<FormatCode>, PgWireError>
Expand PostgreSQL’s zero, one, or one-per-parameter format-code forms.
Sourcepub fn parameter_format(&self, index: usize) -> Result<FormatCode, PgWireError>
pub fn parameter_format(&self, index: usize) -> Result<FormatCode, PgWireError>
Resolve the wire format for one bound parameter.
Sourcepub fn resolved_result_formats(
&self,
column_count: usize,
) -> Result<Vec<FormatCode>, PgWireError>
pub fn resolved_result_formats( &self, column_count: usize, ) -> Result<Vec<FormatCode>, PgWireError>
Expand PostgreSQL’s zero, one, or one-per-column result format forms.
Sourcepub fn result_format(
&self,
index: usize,
column_count: usize,
) -> Result<FormatCode, PgWireError>
pub fn result_format( &self, index: usize, column_count: usize, ) -> Result<FormatCode, PgWireError>
Resolve the requested wire format for one result column.
Trait Implementations§
impl Eq for Bind
impl StructuralPartialEq for Bind
Auto Trait Implementations§
impl Freeze for Bind
impl RefUnwindSafe for Bind
impl Send for Bind
impl Sync for Bind
impl Unpin for Bind
impl UnsafeUnpin for Bind
impl UnwindSafe for Bind
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