pub struct SafetyAttributes {
pub categories: Option<Vec<String>>,
pub scores: Option<Vec<f32>>,
pub content_type: Option<String>,
}Expand description
Safety attributes for generated media.
Fields§
§categories: Option<Vec<String>>§scores: Option<Vec<f32>>§content_type: Option<String>Trait Implementations§
Source§impl Clone for SafetyAttributes
impl Clone for SafetyAttributes
Source§fn clone(&self) -> SafetyAttributes
fn clone(&self) -> SafetyAttributes
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 SafetyAttributes
impl Debug for SafetyAttributes
Source§impl Default for SafetyAttributes
impl Default for SafetyAttributes
Source§fn default() -> SafetyAttributes
fn default() -> SafetyAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafetyAttributes
impl<'de> Deserialize<'de> for SafetyAttributes
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 SafetyAttributes
impl RefUnwindSafe for SafetyAttributes
impl Send for SafetyAttributes
impl Sync for SafetyAttributes
impl Unpin for SafetyAttributes
impl UnsafeUnpin for SafetyAttributes
impl UnwindSafe for SafetyAttributes
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