pub enum CastContext {
Explicit,
Assignment,
Implicit,
}Expand description
The context in which a cast may be invoked automatically.
Note: this is a PostgreSQL-specific construct.
Variants§
Trait Implementations§
Source§impl Clone for CastContext
impl Clone for CastContext
Source§fn clone(&self) -> CastContext
fn clone(&self) -> CastContext
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 moreSource§impl Debug for CastContext
impl Debug for CastContext
Source§impl<'de> Deserialize<'de> for CastContext
impl<'de> Deserialize<'de> for CastContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CastContext
impl Display for CastContext
Source§impl Hash for CastContext
impl Hash for CastContext
Source§impl Ord for CastContext
impl Ord for CastContext
Source§fn cmp(&self, other: &CastContext) -> Ordering
fn cmp(&self, other: &CastContext) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CastContext
impl PartialEq for CastContext
Source§impl PartialOrd for CastContext
impl PartialOrd for CastContext
Source§impl Serialize for CastContext
impl Serialize for CastContext
Source§impl Visit for CastContext
impl Visit for CastContext
Source§impl VisitMut for CastContext
impl VisitMut for CastContext
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for CastContext
impl StructuralPartialEq for CastContext
Auto Trait Implementations§
impl Freeze for CastContext
impl RefUnwindSafe for CastContext
impl Send for CastContext
impl Sync for CastContext
impl Unpin for CastContext
impl UnsafeUnpin for CastContext
impl UnwindSafe for CastContext
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