#[non_exhaustive]pub struct GuardianRequestBody {Show 17 fields
pub model: String,
pub instructions: String,
pub input: Vec<ClientResponseItem>,
pub tools: Option<Option<Value>>,
pub tool_choice: String,
pub parallel_tool_calls: bool,
pub reasoning: Option<Reasoning>,
pub store: bool,
pub stream: bool,
pub stream_options: Option<ClientStreamOptions>,
pub include: Vec<String>,
pub service_tier: Option<String>,
pub prompt_cache_key: Option<String>,
pub text: Option<ClientTextControls>,
pub client_metadata: Option<BTreeMap<String, String>>,
pub access_programs: Option<AccessPrograms>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: String§instructions: String§input: Vec<ClientResponseItem>§tools: Option<Option<Value>>§tool_choice: String§parallel_tool_calls: bool§reasoning: Option<Reasoning>§store: bool§stream: bool§stream_options: Option<ClientStreamOptions>§include: Vec<String>§service_tier: Option<String>§prompt_cache_key: Option<String>§text: Option<ClientTextControls>§client_metadata: Option<BTreeMap<String, String>>§access_programs: Option<AccessPrograms>§rest: RestImplementations§
Source§impl GuardianRequestBody
impl GuardianRequestBody
Sourcepub fn builder(
model: String,
instructions: String,
input: Vec<ClientResponseItem>,
tool_choice: String,
parallel_tool_calls: bool,
reasoning: Option<Reasoning>,
store: bool,
stream: bool,
include: Vec<String>,
) -> GuardianRequestBodyBuilder
pub fn builder( model: String, instructions: String, input: Vec<ClientResponseItem>, tool_choice: String, parallel_tool_calls: bool, reasoning: Option<Reasoning>, store: bool, stream: bool, include: Vec<String>, ) -> GuardianRequestBodyBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for GuardianRequestBody
impl Clone for GuardianRequestBody
Source§impl Debug for GuardianRequestBody
impl Debug for GuardianRequestBody
Source§impl DeclaredFields for GuardianRequestBody
impl DeclaredFields for GuardianRequestBody
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for GuardianRequestBody
impl<'de> Deserialize<'de> for GuardianRequestBody
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 GuardianRequestBody
impl PartialEq for GuardianRequestBody
Source§impl Serialize for GuardianRequestBody
impl Serialize for GuardianRequestBody
impl StructuralPartialEq for GuardianRequestBody
Auto Trait Implementations§
impl Freeze for GuardianRequestBody
impl RefUnwindSafe for GuardianRequestBody
impl Send for GuardianRequestBody
impl Sync for GuardianRequestBody
impl Unpin for GuardianRequestBody
impl UnsafeUnpin for GuardianRequestBody
impl UnwindSafe for GuardianRequestBody
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