pub struct SafetyAlerts<'c, C: Config> { /* private fields */ }Available on crate feature
safety only.Expand description
Retrieve safety alerts for the authenticated project.
Implementations§
Source§impl<'c, C: Config> SafetyAlerts<'c, C>
impl<'c, C: Config> SafetyAlerts<'c, C>
pub fn new(client: &'c Client<C>) -> Self
Sourcepub async fn retrieve(
&self,
id: &str,
) -> Result<SafetyAlertResource, OpenAIError>
pub async fn retrieve( &self, id: &str, ) -> Result<SafetyAlertResource, OpenAIError>
Get a safety alert belonging to the authenticated API project.
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for SafetyAlerts<'c, C>
Available on crate feature _api only.
impl<'c, C: Config> RequestOptionsBuilder for SafetyAlerts<'c, C>
Available on crate feature
_api only.Source§fn options_mut(&mut self) -> &mut RequestOptions
fn options_mut(&mut self) -> &mut RequestOptions
Get mutable reference to RequestOptions (for building)
Source§fn options(&self) -> &RequestOptions
fn options(&self) -> &RequestOptions
Get reference to RequestOptions
Source§fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
Add a single header to RequestOptions
Auto Trait Implementations§
impl<'c, C> !RefUnwindSafe for SafetyAlerts<'c, C>
impl<'c, C> !UnwindSafe for SafetyAlerts<'c, C>
impl<'c, C> Freeze for SafetyAlerts<'c, C>
impl<'c, C> Send for SafetyAlerts<'c, C>
impl<'c, C> Sync for SafetyAlerts<'c, C>
impl<'c, C> Unpin for SafetyAlerts<'c, C>
impl<'c, C> UnsafeUnpin for SafetyAlerts<'c, C>where
&'c Client<C>: UnsafeUnpin,
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