pub struct AuditLogs<'c, C: Config> { /* private fields */ }Expand description
Logs of user actions and configuration changes within this organization. To log events, you must activate logging in the Organization Settings. Once activated, for security reasons, logging cannot be deactivated.
Implementations§
Source§impl<'c, C: Config> AuditLogs<'c, C>
impl<'c, C: Config> AuditLogs<'c, C>
pub fn new(client: &'c Client<C>) -> Self
Sourcepub async fn get(&self) -> Result<ListAuditLogsResponse, OpenAIError>
pub async fn get(&self) -> Result<ListAuditLogsResponse, OpenAIError>
List user actions and configuration changes within this organization. List user actions and configuration changes within this organization.
Sourcepub async fn get_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
pub async fn get_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
List user actions and configuration changes within this organization.
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for AuditLogs<'c, C>
impl<'c, C: Config> RequestOptionsBuilder for AuditLogs<'c, C>
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> Freeze for AuditLogs<'c, C>
impl<'c, C> !RefUnwindSafe for AuditLogs<'c, C>
impl<'c, C> Send for AuditLogs<'c, C>
impl<'c, C> Sync for AuditLogs<'c, C>
impl<'c, C> Unpin for AuditLogs<'c, C>
impl<'c, C> !UnwindSafe for AuditLogs<'c, C>
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