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

Method default

crates/opencode-provider/src/message.rs:104–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103impl Default for ContentPart {
104 fn default() -> Self {
105 Self {
106 content_type: "text".to_string(),
107 text: None,
108 image_url: None,
109 tool_use: None,
110 tool_result: None,
111 cache_control: None,
112 filename: None,
113 media_type: None,
114 provider_options: None,
115 }
116 }
117}
118
119#[derive(Debug, Clone, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected