Struct pgwire::messages::extendedquery::Execute
source · #[non_exhaustive]pub struct Execute {
pub name: Option<String>,
pub max_rows: i32,
}
Expand description
Execute portal by its name
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
§max_rows: i32
Implementations§
Trait Implementations§
source§impl Message for Execute
impl Message for Execute
source§fn message_type() -> Option<u8>
fn message_type() -> Option<u8>
Return the type code of the message. In order to maintain backward
compatibility,
Startup
has no message type.source§fn message_length(&self) -> usize
fn message_length(&self) -> usize
Return the length of the message, including the length integer itself.
source§fn encode_body(&self, buf: &mut BytesMut) -> PgWireResult<()>
fn encode_body(&self, buf: &mut BytesMut) -> PgWireResult<()>
Encode body part of the message.
source§fn decode_body(buf: &mut BytesMut, _: usize) -> PgWireResult<Self>
fn decode_body(buf: &mut BytesMut, _: usize) -> PgWireResult<Self>
Decode body part of the message.
impl Eq for Execute
impl StructuralPartialEq for Execute
Auto Trait Implementations§
impl Freeze for Execute
impl RefUnwindSafe for Execute
impl Send for Execute
impl Sync for Execute
impl Unpin for Execute
impl UnwindSafe for Execute
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