pub struct ContentFilterResponse {
pub is_safe: bool,
pub passed_filters: Vec<FilterCategory>,
pub failed_filters: Vec<FilterCategory>,
pub risk_score: f64,
pub recommended_action: SafetyAction,
pub filter_results: Vec<FilterResult>,
pub audit_id: Option<String>,
}Expand description
Response from content filtering
Fields§
§is_safe: boolWhether the content is considered safe
passed_filters: Vec<FilterCategory>Filters that the content passed
failed_filters: Vec<FilterCategory>Filters that the content failed
risk_score: f64Overall risk score (0.0 to 1.0)
recommended_action: SafetyActionRecommended action based on filtering results
filter_results: Vec<FilterResult>Detailed filter results
audit_id: Option<String>Audit identifier for tracking
Trait Implementations§
Source§impl Clone for ContentFilterResponse
impl Clone for ContentFilterResponse
Source§fn clone(&self) -> ContentFilterResponse
fn clone(&self) -> ContentFilterResponse
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 ContentFilterResponse
impl Debug for ContentFilterResponse
Source§impl<'de> Deserialize<'de> for ContentFilterResponse
impl<'de> Deserialize<'de> for ContentFilterResponse
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 ContentFilterResponse
impl RefUnwindSafe for ContentFilterResponse
impl Send for ContentFilterResponse
impl Sync for ContentFilterResponse
impl Unpin for ContentFilterResponse
impl UnwindSafe for ContentFilterResponse
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