pub struct RoutineValueDescription(/* private fields */);Expand description
The assignment semantics selected by a routine’s declared type. This describes a conversion, never a converted value; callers may retain it only while the catalog and name-resolution scope that selected it remain unchanged.
Implementations§
Source§impl RoutineValueDescription
impl RoutineValueDescription
Sourcepub fn resolve(context: &dyn RoutineValueContext, name: &str) -> Option<Self>
pub fn resolve(context: &dyn RoutineValueContext, name: &str) -> Option<Self>
Resolve at the original conversion boundary. An unresolved name keeps the ordinary value-dependent cast path and is not a reusable description.
Sourcepub fn clone_with_control(
&self,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, ValueRetentionError>
pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, ValueRetentionError>
Admit a retained copy of the descriptor’s owned type payload before copying it.
Sourcepub fn coerce(
&self,
context: &dyn RoutineValueContext,
value: &Value,
source: Option<&ColumnType>,
) -> Result<Value, SQLError>
pub fn coerce( &self, context: &dyn RoutineValueContext, value: &Value, source: Option<&ColumnType>, ) -> Result<Value, SQLError>
Apply the original assignment kernel with live input/domain callbacks and session settings. The caller must revalidate its scope after evaluating the input and any preceding callback.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoutineValueDescription
impl RefUnwindSafe for RoutineValueDescription
impl Send for RoutineValueDescription
impl Sync for RoutineValueDescription
impl Unpin for RoutineValueDescription
impl UnsafeUnpin for RoutineValueDescription
impl UnwindSafe for RoutineValueDescription
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more