pub struct SafetyAlertResource {
pub id: String,
pub object: String,
pub created_at: u64,
pub request_id: String,
pub response_id: String,
pub model: String,
pub request_paused: bool,
pub error_type: SafetyAlertErrorType,
pub reason: Option<String>,
}Available on crate feature
safety-types only.Fields§
§id: String§object: String§created_at: u64§request_id: String§response_id: String§model: String§request_paused: boolWhether block registration succeeded for this request. This does not confirm that response execution stopped.
error_type: SafetyAlertErrorType§reason: Option<String>Trait Implementations§
Source§impl Clone for SafetyAlertResource
impl Clone for SafetyAlertResource
Source§fn clone(&self) -> SafetyAlertResource
fn clone(&self) -> SafetyAlertResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SafetyAlertResource
impl Debug for SafetyAlertResource
Source§impl<'de> Deserialize<'de> for SafetyAlertResource
impl<'de> Deserialize<'de> for SafetyAlertResource
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
Source§impl PartialEq for SafetyAlertResource
impl PartialEq for SafetyAlertResource
Source§impl Serialize for SafetyAlertResource
impl Serialize for SafetyAlertResource
impl StructuralPartialEq for SafetyAlertResource
Auto Trait Implementations§
impl Freeze for SafetyAlertResource
impl RefUnwindSafe for SafetyAlertResource
impl Send for SafetyAlertResource
impl Sync for SafetyAlertResource
impl Unpin for SafetyAlertResource
impl UnsafeUnpin for SafetyAlertResource
impl UnwindSafe for SafetyAlertResource
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