pub struct Guardrail {
pub guardrail_id: String,
pub tenant_id: String,
pub name: String,
pub webhook_url: String,
pub phase: GuardrailPhase,
pub action: Option<GuardrailAction>,
pub timeout_ms: Option<i64>,
pub created_at: Option<String>,
}Expand description
A webhook called before or after a run to allow, redact or block it.
Fields§
§guardrail_id: String§tenant_id: String§name: String§webhook_url: String§phase: GuardrailPhase§action: Option<GuardrailAction>§timeout_ms: Option<i64>§created_at: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Guardrail
impl<'de> Deserialize<'de> for Guardrail
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
impl StructuralPartialEq for Guardrail
Auto Trait Implementations§
impl Freeze for Guardrail
impl RefUnwindSafe for Guardrail
impl Send for Guardrail
impl Sync for Guardrail
impl Unpin for Guardrail
impl UnsafeUnpin for Guardrail
impl UnwindSafe for Guardrail
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