pub struct DeleteResponse {
pub id: String,
pub object: String,
pub deleted: bool,
}
Expand description
common response used by multiple delete API-s
Fields§
§id: String
§object: String
§deleted: bool
Trait Implementations§
Source§impl ByUrlRequest<DeleteResponse> for FileDeleteRequest
impl ByUrlRequest<DeleteResponse> for FileDeleteRequest
const ENDPOINT: &'static str = "/files/"
const SUFFIX: &'static str = ""
fn builder(client: &OpenAiClient, final_url: String) -> RequestBuilder
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 OpenAiClient,
) -> Pin<Box<dyn Future<Output = Result<TRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ByUrlRequest<DeleteResponse> for ModelDeleteRequest
impl ByUrlRequest<DeleteResponse> for ModelDeleteRequest
const ENDPOINT: &'static str = "/models/"
const SUFFIX: &'static str = ""
fn builder(client: &OpenAiClient, final_url: String) -> RequestBuilder
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 OpenAiClient,
) -> Pin<Box<dyn Future<Output = Result<TRes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Clone for DeleteResponse
impl Clone for DeleteResponse
Source§fn clone(&self) -> DeleteResponse
fn clone(&self) -> DeleteResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeleteResponse
impl Debug for DeleteResponse
Source§impl<'de> Deserialize<'de> for DeleteResponse
impl<'de> Deserialize<'de> for DeleteResponse
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 DeleteResponse
impl RefUnwindSafe for DeleteResponse
impl Send for DeleteResponse
impl Sync for DeleteResponse
impl Unpin for DeleteResponse
impl UnwindSafe for DeleteResponse
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