pub struct ParamsRef<'i, 'to> {
pub input: &'i InputValue,
pub output: Option<TaskOutput<'to>>,
pub map: Option<u64>,
pub tasks_min: Option<u64>,
pub tasks_max: Option<u64>,
pub depth: Option<u64>,
pub name: Option<&'i str>,
pub spec: Option<&'i str>,
}Expand description
Borrowed version of expression parameters.
Fields§
§input: &'i InputValueThe function’s input data.
output: Option<TaskOutput<'to>>Results from executed tasks. Only populated for task output expressions.
map: Option<u64>Current map index. Only populated for mapped task expressions.
tasks_min: Option<u64>Resolved minimum task count for this node type. Only provided for invention prompt expressions.
tasks_max: Option<u64>Resolved maximum task count for this node type. Only provided for invention prompt expressions.
depth: Option<u64>Current recursion depth. Only provided for invention prompt expressions.
name: Option<&'i str>The function’s name. Only provided for invention prompt expressions.
spec: Option<&'i str>The specification text. Only provided for invention prompt expressions.
Trait Implementations§
Source§impl<'i, 'to> PartialEq for ParamsRef<'i, 'to>
impl<'i, 'to> PartialEq for ParamsRef<'i, 'to>
impl<'i, 'to> StructuralPartialEq for ParamsRef<'i, 'to>
Auto Trait Implementations§
impl<'i, 'to> Freeze for ParamsRef<'i, 'to>
impl<'i, 'to> RefUnwindSafe for ParamsRef<'i, 'to>
impl<'i, 'to> Send for ParamsRef<'i, 'to>
impl<'i, 'to> Sync for ParamsRef<'i, 'to>
impl<'i, 'to> Unpin for ParamsRef<'i, 'to>
impl<'i, 'to> UnsafeUnpin for ParamsRef<'i, 'to>
impl<'i, 'to> UnwindSafe for ParamsRef<'i, 'to>
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
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>
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