MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / ApiError

Class ApiError

crates/opencode-session/src/message_v2.rs:478–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476
477#[derive(Debug, Clone, Serialize, Deserialize)]
478pub struct ApiError {
479 pub message: String,
480 #[serde(skip_serializing_if = "Option::is_none")]
481 pub status_code: Option<i32>,
482 pub is_retryable: bool,
483 #[serde(skip_serializing_if = "Option::is_none")]
484 pub response_headers: Option<HashMap<String, String>>,
485 #[serde(skip_serializing_if = "Option::is_none")]
486 pub response_body: Option<String>,
487 #[serde(skip_serializing_if = "Option::is_none")]
488 pub metadata: Option<HashMap<String, String>>,
489}
490
491#[derive(Debug, Clone, Serialize, Deserialize)]
492pub struct PartDelta {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected