#[non_exhaustive]pub struct ResponseMetadata {
pub sequence_number: Option<i64>,
pub response_id: Option<String>,
pub metadata: Option<Value>,
pub headers: Option<Value>,
pub safety_buffering: Option<Value>,
pub rest: Rest,
}Expand description
Codex turn headers and opaque moderation/verification or buffering metadata. These are stream notifications, distinct from user-supplied Response.metadata.
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.sequence_number: Option<i64>§response_id: Option<String>§metadata: Option<Value>§headers: Option<Value>§safety_buffering: Option<Value>§rest: RestImplementations§
Source§impl ResponseMetadata
impl ResponseMetadata
Sourcepub fn builder() -> ResponseMetadataBuilder
pub fn builder() -> ResponseMetadataBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Source§impl Debug for ResponseMetadata
impl Debug for ResponseMetadata
Source§impl DeclaredFields for ResponseMetadata
impl DeclaredFields for ResponseMetadata
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponseMetadata
impl<'de> Deserialize<'de> for ResponseMetadata
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 ResponseMetadata
impl PartialEq for ResponseMetadata
Source§impl Serialize for ResponseMetadata
impl Serialize for ResponseMetadata
impl StructuralPartialEq for ResponseMetadata
Auto Trait Implementations§
impl Freeze for ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnsafeUnpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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