pub struct MessagesRedactedThinkingBlock {
pub data: String,
pub type_: MessagesRedactedThinkingBlockType,
}Expand description
A redacted thinking content block in a Messages API request or response. Emitted when thinking content is encrypted for safety reasons; must be passed back unchanged in multi-turn conversations.
JSON schema
{
"description": "A redacted thinking content block in a Messages API request or\nresponse. Emitted when thinking content is encrypted for safety\nreasons; must be passed back unchanged in multi-turn conversations.\n",
"type": "object",
"required": [
"data",
"type"
],
"properties": {
"data": {
"description": "The encrypted thinking content.",
"type": "string"
},
"type": {
"description": "Content type identifier. Always `redacted_thinking`.",
"type": "string",
"enum": [
"redacted_thinking"
]
}
}
}Fields§
§data: StringThe encrypted thinking content.
type_: MessagesRedactedThinkingBlockTypeContent type identifier. Always redacted_thinking.
Trait Implementations§
Source§impl Clone for MessagesRedactedThinkingBlock
impl Clone for MessagesRedactedThinkingBlock
Source§fn clone(&self) -> MessagesRedactedThinkingBlock
fn clone(&self) -> MessagesRedactedThinkingBlock
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 MessagesRedactedThinkingBlock
impl<'de> Deserialize<'de> for MessagesRedactedThinkingBlock
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<MessagesRedactedThinkingBlock> for MessagesRequestContentBlock
impl From<MessagesRedactedThinkingBlock> for MessagesRequestContentBlock
Source§fn from(value: MessagesRedactedThinkingBlock) -> Self
fn from(value: MessagesRedactedThinkingBlock) -> Self
Converts to this type from the input type.
Source§impl From<MessagesRedactedThinkingBlock> for MessagesResponseContentBlock
impl From<MessagesRedactedThinkingBlock> for MessagesResponseContentBlock
Source§fn from(value: MessagesRedactedThinkingBlock) -> Self
fn from(value: MessagesRedactedThinkingBlock) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessagesRedactedThinkingBlock
impl RefUnwindSafe for MessagesRedactedThinkingBlock
impl Send for MessagesRedactedThinkingBlock
impl Sync for MessagesRedactedThinkingBlock
impl Unpin for MessagesRedactedThinkingBlock
impl UnsafeUnpin for MessagesRedactedThinkingBlock
impl UnwindSafe for MessagesRedactedThinkingBlock
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