We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2df5b8 commit a68d671Copy full SHA for a68d671
1 file changed
fern/products/sdks/overview/rust/changelog/2026-03-22.mdx
@@ -1,3 +1,12 @@
1
+## 0.26.2
2
+**`(chore):`** Include all optional fields as `Option<T>` parameters in convenience constructors.
3
+Previously, `{variant}_with_{field}` constructors only accepted the promoted field and
4
+defaulted all other optional fields to `None`. Now they accept all other optional fields
5
+as `Option<T>` parameters, giving callers full control over all fields. For example,
6
+`assistant_with_tool_calls` now accepts `(content: Option<Content>, ..., tool_calls: Vec<ToolCall>)`
7
+instead of just `(tool_calls: Vec<ToolCall>)`.
8
+
9
10
## 0.26.1
11
**`(fix):`** Fix convenience constructors for union variants whose optional fields have nested
12
optional/nullable IR wrappers (e.g. `optional<nullable<string>>` from OpenAPI).
0 commit comments