pub enum ExecutionContextVariableType {
CurrentTimestamp(PrecisionTimestampTz),
CurrentTimezone(String),
CurrentDate(Date),
}Variants§
CurrentTimestamp(PrecisionTimestampTz)
an execution context dependent variable containing the current timestamp in current_timezone nullability must be NULLABILITY_REQUIRED
CurrentTimezone(String)
an execution context dependent variable containing the current session timezone as a string defined by IANA timezone database (https://www.iana.org/time-zones). nullability must be NULLABILITY_REQUIRED
CurrentDate(Date)
an execution context dependent variable containing the current date nullability must be NULLABILITY_REQUIRED
Implementations§
Source§impl ExecutionContextVariableType
impl ExecutionContextVariableType
Sourcepub fn merge(
field: &mut Option<ExecutionContextVariableType>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<ExecutionContextVariableType>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for ExecutionContextVariableType
impl Clone for ExecutionContextVariableType
Source§fn clone(&self) -> ExecutionContextVariableType
fn clone(&self) -> ExecutionContextVariableType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExecutionContextVariableType
Source§impl Debug for ExecutionContextVariableType
impl Debug for ExecutionContextVariableType
impl Eq for ExecutionContextVariableType
Source§impl Hash for ExecutionContextVariableType
impl Hash for ExecutionContextVariableType
impl StructuralPartialEq for ExecutionContextVariableType
Auto Trait Implementations§
impl Freeze for ExecutionContextVariableType
impl RefUnwindSafe for ExecutionContextVariableType
impl Send for ExecutionContextVariableType
impl Sync for ExecutionContextVariableType
impl Unpin for ExecutionContextVariableType
impl UnsafeUnpin for ExecutionContextVariableType
impl UnwindSafe for ExecutionContextVariableType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.