pub struct InferenceCreateMessagesBodyMetadata {
pub user_id: Option<String>,
}Expand description
Optional request metadata.
JSON schema
{
"description": "Optional request metadata.",
"type": "object",
"properties": {
"user_id": {
"description": "Opaque identifier for the end user (for example a UUID or hash). Do not include PII.\n",
"examples": [
"550e8400-e29b-41d4-a716-446655440000"
],
"type": "string"
}
}
}Fields§
§user_id: Option<String>Opaque identifier for the end user (for example a UUID or hash). Do not include PII.
Trait Implementations§
Source§impl Clone for InferenceCreateMessagesBodyMetadata
impl Clone for InferenceCreateMessagesBodyMetadata
Source§fn clone(&self) -> InferenceCreateMessagesBodyMetadata
fn clone(&self) -> InferenceCreateMessagesBodyMetadata
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<'de> Deserialize<'de> for InferenceCreateMessagesBodyMetadata
impl<'de> Deserialize<'de> for InferenceCreateMessagesBodyMetadata
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 From<&InferenceCreateMessagesBodyMetadata> for InferenceCreateMessagesBodyMetadata
impl From<&InferenceCreateMessagesBodyMetadata> for InferenceCreateMessagesBodyMetadata
Source§fn from(value: &InferenceCreateMessagesBodyMetadata) -> Self
fn from(value: &InferenceCreateMessagesBodyMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InferenceCreateMessagesBodyMetadata
impl RefUnwindSafe for InferenceCreateMessagesBodyMetadata
impl Send for InferenceCreateMessagesBodyMetadata
impl Sync for InferenceCreateMessagesBodyMetadata
impl Unpin for InferenceCreateMessagesBodyMetadata
impl UnsafeUnpin for InferenceCreateMessagesBodyMetadata
impl UnwindSafe for InferenceCreateMessagesBodyMetadata
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