#[non_exhaustive]pub struct ReturnValue {
pub param_ordinal: u16,
pub param_name: String,
pub status: u8,
pub user_type: u32,
pub flags: u16,
pub col_type: u8,
pub type_info: TypeInfo,
pub value: Bytes,
}Expand description
Return value from stored procedure.
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.param_ordinal: u16Parameter ordinal.
param_name: StringParameter name.
status: u8Status flags.
user_type: u32User type.
flags: u16Type flags.
col_type: u8Raw column type byte from the wire.
type_info: TypeInfoType info.
value: BytesValue data.
Implementations§
Source§impl ReturnValue
impl ReturnValue
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode a RETURNVALUE token from bytes.
Trait Implementations§
Source§impl Clone for ReturnValue
impl Clone for ReturnValue
Source§fn clone(&self) -> ReturnValue
fn clone(&self) -> ReturnValue
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 moreAuto Trait Implementations§
impl !Freeze for ReturnValue
impl RefUnwindSafe for ReturnValue
impl Send for ReturnValue
impl Sync for ReturnValue
impl Unpin for ReturnValue
impl UnsafeUnpin for ReturnValue
impl UnwindSafe for ReturnValue
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