pub struct ResolvedFields {
pub names: Vec<String>,
pub values: Vec<Value>,
/* private fields */
}Expand description
Resolved field values for a single cycle. Produced by the GK synthesis pipeline, consumed by the OpDispenser.
Fields are indexed by name. Typed values are always available; string rendering is deferred until first access to avoid wasted work for adapters that bind typed values natively (e.g., CQL).
SRD-68 Push 5: this struct survives as an in-adapter rendering
container (stdout/testkit/plotter build one locally from
crate::wires::resolve_op_fields_via_wires when they need
name-keyed value access). Adapters that bind typed values
natively (CQL prepared params, vector arguments) read directly
through wires.get(name) and don’t construct this type.
Fields§
§names: Vec<String>Field names in op template declaration order.
values: Vec<Value>Typed values, parallel to names.
Implementations§
Source§impl ResolvedFields
impl ResolvedFields
Sourcepub fn new(names: Vec<String>, values: Vec<Value>) -> Self
pub fn new(names: Vec<String>, values: Vec<Value>) -> Self
Create with names and typed values. Strings are lazily rendered.
Sourcepub fn strings(&self) -> &[String]
pub fn strings(&self) -> &[String]
Access the lazily-rendered string representations. Computed once on first call, then cached.
Sourcepub fn get_value(&self, name: &str) -> Option<&Value>
pub fn get_value(&self, name: &str) -> Option<&Value>
Get a field value by name as a typed Value.
Sourcepub fn str_at(&self, index: usize) -> &str
pub fn str_at(&self, index: usize) -> &str
Get a string by index (triggers lazy rendering if needed).
Trait Implementations§
Source§impl Clone for ResolvedFields
impl Clone for ResolvedFields
Auto Trait Implementations§
impl !Freeze for ResolvedFields
impl !RefUnwindSafe for ResolvedFields
impl !UnwindSafe for ResolvedFields
impl Forget for ResolvedFields
impl Move for ResolvedFields
impl Send for ResolvedFieldswhere
RawVecInner: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
Arc<Value>: Send,
BoxRaw<dyn ReflectedValue>: Send,
Arc<dyn Any + Sync + Send>: Send,
Arc<OrdinalSet>: Send,
Arc<PredicateForms>: Send,
Arc<RecordForms>: Send,
SliceArc<f32>: Send,
SliceArc<i32>: Send,
SliceArc<f64>: Send,
SliceArc<i64>: Send,
SliceArc<f16>: Send,
SliceArc<i16>: Send,
SliceArc<i8>: Send,
OnceLock<Vec<String>>: Send,
impl Sync for ResolvedFieldswhere
RawVecInner: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
Arc<Value>: Sync,
BoxRaw<dyn ReflectedValue>: Sync,
Arc<dyn Any + Sync + Send>: Sync,
Arc<OrdinalSet>: Sync,
Arc<PredicateForms>: Sync,
Arc<RecordForms>: Sync,
SliceArc<f32>: Sync,
SliceArc<i32>: Sync,
SliceArc<f64>: Sync,
SliceArc<i64>: Sync,
SliceArc<f16>: Sync,
SliceArc<i16>: Sync,
SliceArc<i8>: Sync,
OnceLock<Vec<String>>: Sync,
impl Unpin for ResolvedFieldswhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
Arc<Value>: Unpin,
Box<dyn ReflectedValue>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
Arc<OrdinalSet>: Unpin,
Arc<PredicateForms>: Unpin,
Arc<RecordForms>: Unpin,
*const f32: Unpin,
*const i32: Unpin,
*const f64: Unpin,
*const i64: Unpin,
*const f16: Unpin,
*const i16: Unpin,
*const i8: Unpin,
Align4<u32>: Unpin,
impl UnsafeUnpin for ResolvedFieldswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
PhantomData<Vec<String>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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