Struct openai_rs_api::core::models::moderations::TextModerationParameters
source · pub struct TextModerationParameters {
pub model: Option<String>,
pub input: String,
}Fields§
§model: Option<String>The ID of the model to use for moderation.
input: StringThe text to moderate.
Trait Implementations§
source§impl Debug for TextModerationParameters
impl Debug for TextModerationParameters
source§impl<'de> Deserialize<'de> for TextModerationParameters
impl<'de> Deserialize<'de> for TextModerationParameters
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 RefUnwindSafe for TextModerationParameters
impl Send for TextModerationParameters
impl Sync for TextModerationParameters
impl Unpin for TextModerationParameters
impl UnwindSafe for TextModerationParameters
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