Skip to content

Commit a68d671

Browse files
Update changelogs from fern repo (#4490)
Co-authored-by: iamnamananand996 <31537362+iamnamananand996@users.noreply.github.com>
1 parent e2df5b8 commit a68d671

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

fern/products/sdks/overview/rust/changelog/2026-03-22.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
110
## 0.26.1
211
**`(fix):`** Fix convenience constructors for union variants whose optional fields have nested
312
optional/nullable IR wrappers (e.g. `optional<nullable<string>>` from OpenAPI).

0 commit comments

Comments
 (0)