pub struct ModerationCreateResponse {
pub id: String,
pub model: String,
pub results: Vec<ModerationResult>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 moderation 接口返回值。
Fields§
§id: String请求 ID。
model: String模型 ID。
results: Vec<ModerationResult>分类结果列表。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for ModerationCreateResponse
impl Clone for ModerationCreateResponse
Source§fn clone(&self) -> ModerationCreateResponse
fn clone(&self) -> ModerationCreateResponse
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 ModerationCreateResponse
impl Debug for ModerationCreateResponse
Source§impl Default for ModerationCreateResponse
impl Default for ModerationCreateResponse
Source§fn default() -> ModerationCreateResponse
fn default() -> ModerationCreateResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModerationCreateResponse
impl<'de> Deserialize<'de> for ModerationCreateResponse
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 ModerationCreateResponse
impl RefUnwindSafe for ModerationCreateResponse
impl Send for ModerationCreateResponse
impl Sync for ModerationCreateResponse
impl Unpin for ModerationCreateResponse
impl UnsafeUnpin for ModerationCreateResponse
impl UnwindSafe for ModerationCreateResponse
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