pub struct LlmSanitizeResponseCodec<'a> { /* private fields */ }Expand description
Safe callback-scoped response codec facade for typed native plugins.
Implementations§
Source§impl LlmSanitizeResponseCodec<'_>
impl LlmSanitizeResponseCodec<'_>
Sourcepub fn decode(&self, response: &Json) -> Result<AnnotatedLlmResponse>
pub fn decode(&self, response: &Json) -> Result<AnnotatedLlmResponse>
Decode an opaque response into Relay’s normalized response model.
Auto Trait Implementations§
impl<'a> !Send for LlmSanitizeResponseCodec<'a>
impl<'a> !Sync for LlmSanitizeResponseCodec<'a>
impl<'a> Freeze for LlmSanitizeResponseCodec<'a>
impl<'a> RefUnwindSafe for LlmSanitizeResponseCodec<'a>
impl<'a> Unpin for LlmSanitizeResponseCodec<'a>
impl<'a> UnsafeUnpin for LlmSanitizeResponseCodec<'a>
impl<'a> UnwindSafe for LlmSanitizeResponseCodec<'a>
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