pub struct FileContent { /* private fields */ }Expand description
EN: Incremental file content response. 中文:增量文件内容响应。
Implementations§
Source§impl FileContent
impl FileContent
Sourcepub fn request_id(&self) -> Option<&RequestId>
pub fn request_id(&self) -> Option<&RequestId>
EN: Returns the OpenAI request id, when present. 中文:返回 OpenAI 请求 ID,如存在。
Sourcepub fn into_stream(self) -> BodyStream
pub fn into_stream(self) -> BodyStream
EN: Consumes this response and returns the incremental content stream. 中文:消耗此响应并返回增量内容流。
Auto Trait Implementations§
impl !RefUnwindSafe for FileContent
impl !Sync for FileContent
impl !UnwindSafe for FileContent
impl Freeze for FileContent
impl Send for FileContent
impl Unpin for FileContent
impl UnsafeUnpin for FileContent
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