pub struct TargetInput<'a> {
pub column_name: &'a str,
pub rivet_type: &'a RivetType,
pub arrow_type: Option<&'a DataType>,
pub fidelity: TypeFidelity,
}Expand description
The borrowed subset a resolver is allowed to read. Built from a
TypeMapping via From. Dispatch is on rivet_type; arrow_type is
retained for callers that want it but the resolver reads precision from
RivetType::Decimal directly.
Fields§
§column_name: &'a str§rivet_type: &'a RivetType§arrow_type: Option<&'a DataType>Retained for callers and future precision-sensitive targets; the
resolver reads precision from RivetType::Decimal directly today.
fidelity: TypeFidelityTrait Implementations§
Source§impl<'a> Clone for TargetInput<'a>
impl<'a> Clone for TargetInput<'a>
Source§fn clone(&self) -> TargetInput<'a>
fn clone(&self) -> TargetInput<'a>
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 moreSource§impl<'a> Debug for TargetInput<'a>
impl<'a> Debug for TargetInput<'a>
Source§impl<'a> From<&'a TypeMapping> for TargetInput<'a>
impl<'a> From<&'a TypeMapping> for TargetInput<'a>
Source§fn from(m: &'a TypeMapping) -> Self
fn from(m: &'a TypeMapping) -> Self
Converts to this type from the input type.
impl<'a> Copy for TargetInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for TargetInput<'a>
impl<'a> RefUnwindSafe for TargetInput<'a>
impl<'a> Send for TargetInput<'a>
impl<'a> Sync for TargetInput<'a>
impl<'a> Unpin for TargetInput<'a>
impl<'a> UnsafeUnpin for TargetInput<'a>
impl<'a> UnwindSafe for TargetInput<'a>
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