pub struct RestTextTurnRequest {
pub prompt: String,
pub model: Option<String>,
pub approval_policy: Option<RestApprovalPolicy>,
pub client: Option<RestClientOptions>,
}Expand description
Request body for POST /v1/text-turn.
Fields§
§prompt: String§model: Option<String>§approval_policy: Option<RestApprovalPolicy>§client: Option<RestClientOptions>Implementations§
Source§impl RestTextTurnRequest
impl RestTextTurnRequest
pub fn session_options(&self) -> SessionOptions
Trait Implementations§
Source§impl Clone for RestTextTurnRequest
impl Clone for RestTextTurnRequest
Source§fn clone(&self) -> RestTextTurnRequest
fn clone(&self) -> RestTextTurnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestTextTurnRequest
impl Debug for RestTextTurnRequest
Source§impl<'de> Deserialize<'de> for RestTextTurnRequest
impl<'de> Deserialize<'de> for RestTextTurnRequest
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 RestTextTurnRequest
impl PartialEq for RestTextTurnRequest
Source§fn eq(&self, other: &RestTextTurnRequest) -> bool
fn eq(&self, other: &RestTextTurnRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RestTextTurnRequest
impl Serialize for RestTextTurnRequest
impl Eq for RestTextTurnRequest
impl StructuralPartialEq for RestTextTurnRequest
Auto Trait Implementations§
impl Freeze for RestTextTurnRequest
impl RefUnwindSafe for RestTextTurnRequest
impl Send for RestTextTurnRequest
impl Sync for RestTextTurnRequest
impl Unpin for RestTextTurnRequest
impl UnsafeUnpin for RestTextTurnRequest
impl UnwindSafe for RestTextTurnRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.