pub struct OutputGuardrailOutcome {
pub text: String,
pub categories: Vec<&'static str>,
pub blocked: bool,
}Expand description
Result of applying the output guardrail to a piece of text.
Fields§
§text: StringThe text to actually deliver (redacted, or a block notice).
categories: Vec<&'static str>Credential categories that were detected.
blocked: boolTrue when the message was withheld (block mode).
Auto Trait Implementations§
impl Freeze for OutputGuardrailOutcome
impl RefUnwindSafe for OutputGuardrailOutcome
impl Send for OutputGuardrailOutcome
impl Sync for OutputGuardrailOutcome
impl Unpin for OutputGuardrailOutcome
impl UnsafeUnpin for OutputGuardrailOutcome
impl UnwindSafe for OutputGuardrailOutcome
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