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 Send for ResolvedFields
impl Sync for ResolvedFields
impl Unpin for ResolvedFields
impl UnsafeUnpin for ResolvedFields
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