pub struct BindingBuilder { /* private fields */ }Expand description
Implementations§
Source§impl BindingBuilder
impl BindingBuilder
Sourcepub fn from(from: impl Into<NodeId>) -> Self
pub fn from(from: impl Into<NodeId>) -> Self
Create a new BindingBuilder starting with the source node.
Sourcepub fn pointer(self, ptr: &str) -> Self
pub fn pointer(self, ptr: &str) -> Self
Set the source pointer to extract from the node’s output.
Sourcepub fn to_placeholder(self, name: &str) -> Self
pub fn to_placeholder(self, name: &str) -> Self
Set the destination placeholder name.
Sourcepub fn encoding(self, enc: LlmResponsesBindingEncodingV1) -> Self
pub fn encoding(self, enc: LlmResponsesBindingEncodingV1) -> Self
Set the encoding for the binding value.
Sourcepub fn build(self) -> LlmResponsesBindingV1
pub fn build(self) -> LlmResponsesBindingV1
Build the binding.
Auto Trait Implementations§
impl Freeze for BindingBuilder
impl RefUnwindSafe for BindingBuilder
impl Send for BindingBuilder
impl Sync for BindingBuilder
impl Unpin for BindingBuilder
impl UnwindSafe for BindingBuilder
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