pub struct TargetBindingConfig {
pub target_type: TargetBindingType,
pub target_path: Option<String>,
pub transform: TargetBindingTransform,
pub max_length: Option<usize>,
pub json_path: Option<String>,
pub thread_id: Option<ThreadId>,
pub execution_id: Option<ExecutionId>,
}Expand description
TargetBindingConfig - Configuration for binding execution result to a target @see packages/enact-schemas/src/execution.schemas.ts - targetBindingSchema
Fields§
§target_type: TargetBindingTypeTarget type
target_path: Option<String>Custom target path (for custom type)
transform: TargetBindingTransformTransform to apply before binding
max_length: Option<usize>Max length for truncate transform
json_path: Option<String>JSON path for json_extract transform
thread_id: Option<ThreadId>Thread ID to bind to (for thread.* targets)
execution_id: Option<ExecutionId>Execution ID to bind to (for execution.* targets)
Implementations§
Source§impl TargetBindingConfig
impl TargetBindingConfig
Sourcepub fn thread_title(thread_id: ThreadId) -> Self
pub fn thread_title(thread_id: ThreadId) -> Self
Create a thread title binding
Sourcepub fn thread_summary(thread_id: ThreadId) -> Self
pub fn thread_summary(thread_id: ThreadId) -> Self
Create a thread summary binding
Sourcepub fn execution_summary(execution_id: ExecutionId) -> Self
pub fn execution_summary(execution_id: ExecutionId) -> Self
Create an execution summary binding
Sourcepub fn memory_write(memory_key: String) -> Self
pub fn memory_write(memory_key: String) -> Self
Create a memory write binding
Trait Implementations§
Source§impl Clone for TargetBindingConfig
impl Clone for TargetBindingConfig
Source§fn clone(&self) -> TargetBindingConfig
fn clone(&self) -> TargetBindingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetBindingConfig
impl Debug for TargetBindingConfig
Source§impl<'de> Deserialize<'de> for TargetBindingConfig
impl<'de> Deserialize<'de> for TargetBindingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TargetBindingConfig
impl RefUnwindSafe for TargetBindingConfig
impl Send for TargetBindingConfig
impl Sync for TargetBindingConfig
impl Unpin for TargetBindingConfig
impl UnsafeUnpin for TargetBindingConfig
impl UnwindSafe for TargetBindingConfig
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