pub struct DoPutPreparedStatementResult {
pub prepared_statement_handle: Option<Bytes>,
}
Expand description
An optional response returned when DoPut
is called with CommandPreparedStatementQuery
.
Note on legacy behavior: previous versions of the protocol did not return any result for this command, and that behavior should still be supported by clients. In that case, the client can continue as though the fields in this message were not provided or set to sensible default values.
Fields§
§prepared_statement_handle: Option<Bytes>
Represents a (potentially updated) opaque handle for the prepared statement on the server. Because the handle could potentially be updated, any previous handles for this prepared statement should be considered invalid, and all subsequent requests for this prepared statement must use this new handle. The updated handle allows implementing query parameters with stateless services.
When an updated handle is not provided by the server, clients should contiue
using the previous handle provided by ActionCreatePreparedStatementResonse
.
Implementations§
Source§impl DoPutPreparedStatementResult
impl DoPutPreparedStatementResult
Sourcepub fn prepared_statement_handle(&self) -> &[u8] ⓘ
pub fn prepared_statement_handle(&self) -> &[u8] ⓘ
Returns the value of prepared_statement_handle
, or the default value if prepared_statement_handle
is unset.
Trait Implementations§
Source§impl Clone for DoPutPreparedStatementResult
impl Clone for DoPutPreparedStatementResult
Source§fn clone(&self) -> DoPutPreparedStatementResult
fn clone(&self) -> DoPutPreparedStatementResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DoPutPreparedStatementResult
impl Debug for DoPutPreparedStatementResult
Source§impl Message for DoPutPreparedStatementResult
impl Message for DoPutPreparedStatementResult
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for DoPutPreparedStatementResult
impl PartialEq for DoPutPreparedStatementResult
Source§fn eq(&self, other: &DoPutPreparedStatementResult) -> bool
fn eq(&self, other: &DoPutPreparedStatementResult) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DoPutPreparedStatementResult
Auto Trait Implementations§
impl !Freeze for DoPutPreparedStatementResult
impl RefUnwindSafe for DoPutPreparedStatementResult
impl Send for DoPutPreparedStatementResult
impl Sync for DoPutPreparedStatementResult
impl Unpin for DoPutPreparedStatementResult
impl UnwindSafe for DoPutPreparedStatementResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request