pub struct SafetyRating {
pub category: String,
pub probability: String,
}
Expand description
Safety rating for content
Fields§
§category: String
The category of the safety rating
probability: String
The probability that the content is harmful
Trait Implementations§
Source§impl Clone for SafetyRating
impl Clone for SafetyRating
Source§fn clone(&self) -> SafetyRating
fn clone(&self) -> SafetyRating
Returns a copy 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 SafetyRating
impl Debug for SafetyRating
Source§impl<'de> Deserialize<'de> for SafetyRating
impl<'de> Deserialize<'de> for SafetyRating
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 SafetyRating
impl RefUnwindSafe for SafetyRating
impl Send for SafetyRating
impl Sync for SafetyRating
impl Unpin for SafetyRating
impl UnwindSafe for SafetyRating
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