Replies: 1 comment 1 reply
-
Most modifying api calls require taking the whole structure as "required nesting" in the expected data. It feels pretty unnecessary, but it is what the api requires, and it is what we model. This is usually made somewhat easier with server-side apply and the everything-optional paradigm where you could in theory do something more like Then you could in theory do something like: api.patch_status(
github_repository.metadata.name.as_ref().unwrap(),
&PatchParams::default(),
&Patch::Apply(GitHubRepository { status: GitHubRepositoryStatus { url }, ..Default::default() }),
)
.await Unfortunately, that thing works for the |
Beta Was this translation helpful? Give feedback.
-
Why I can't just do:
Beta Was this translation helpful? Give feedback.
All reactions