pub struct GetResponseParams {
pub response_id: String,
pub include: Option<Vec<Includable>>,
pub stream: Option<bool>,
pub starting_after: Option<i64>,
}
Fields§
§response_id: String
The ID of the response to retrieve.
include: Option<Vec<Includable>>
Additional fields to include in the response. See the include
parameter for Response creation above for more information.
stream: Option<bool>
If set to true, the model response data will be streamed to the client as it is generated using server-sent events. See the Streaming section below for more information.
starting_after: Option<i64>
The sequence number of the event after which to start streaming.
Implementations§
Source§impl GetResponseParams
impl GetResponseParams
Sourcepub fn builder() -> GetResponseParamsBuilder<((), (), (), ())>
pub fn builder() -> GetResponseParamsBuilder<((), (), (), ())>
Create a builder for building GetResponseParams
.
On the builder, call .response_id(...)
, .include(...)
(optional), .stream(...)
(optional), .starting_after(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetResponseParams
.
Trait Implementations§
Source§impl Clone for GetResponseParams
impl Clone for GetResponseParams
Source§fn clone(&self) -> GetResponseParams
fn clone(&self) -> GetResponseParams
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 GetResponseParams
impl Debug for GetResponseParams
Source§impl<'de> Deserialize<'de> for GetResponseParams
impl<'de> Deserialize<'de> for GetResponseParams
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 GetResponseParams
impl PartialEq for GetResponseParams
Source§impl Serialize for GetResponseParams
impl Serialize for GetResponseParams
impl StructuralPartialEq for GetResponseParams
Auto Trait Implementations§
impl Freeze for GetResponseParams
impl RefUnwindSafe for GetResponseParams
impl Send for GetResponseParams
impl Sync for GetResponseParams
impl Unpin for GetResponseParams
impl UnwindSafe for GetResponseParams
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