pub struct FunctionBindingParts {
pub object_id: Option<[u8; 16]>,
pub name: Produced<String>,
pub argument_types: Produced<Vec<String>>,
pub builtin: bool,
pub dispatch: Option<FunctionDispatch>,
pub invocation: Option<Produced<RoutineInvocationBinding>>,
pub value_binding: Option<Produced<FunctionValueBinding>>,
pub resolution_error: Option<Produced<FunctionResolutionError>>,
pub input_collation: Option<CollationSelection>,
}Expand description
Constructor inputs for a selected call’s immutable binding. Allocating fields keep their original producer leases until this owner publishes or destroys the complete binding.
Fields§
§object_id: Option<[u8; 16]>§name: Produced<String>§argument_types: Produced<Vec<String>>§builtin: bool§dispatch: Option<FunctionDispatch>§invocation: Option<Produced<RoutineInvocationBinding>>§value_binding: Option<Produced<FunctionValueBinding>>§resolution_error: Option<Produced<FunctionResolutionError>>§input_collation: Option<CollationSelection>Implementations§
Source§impl FunctionBindingParts
impl FunctionBindingParts
Sourcepub fn dispatched(
dispatch: FunctionDispatch,
control: &ProductionControl<'_>,
) -> Result<Self, SQLError>
pub fn dispatched( dispatch: FunctionDispatch, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Start a parser-selected binding with independently owned name and signature fields.
Sourcepub fn finish(
self,
control: &ProductionControl<'_>,
) -> Result<Produced<FunctionBinding>, SQLError>
pub fn finish( self, control: &ProductionControl<'_>, ) -> Result<Produced<FunctionBinding>, SQLError>
Admit optional field boxes before allocation and transfer every completed field’s existing reservation into the published binding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionBindingParts
impl RefUnwindSafe for FunctionBindingParts
impl Send for FunctionBindingParts
impl Sync for FunctionBindingParts
impl Unpin for FunctionBindingParts
impl UnsafeUnpin for FunctionBindingParts
impl UnwindSafe for FunctionBindingParts
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