You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #647, using non-default values for structs with #[non_exhaustive] (like DirectorySourceOptions for example) requires the use of let mut to store the default value followed by mutating that value, since using functional record updates doesn't work in the presence of #[non_exhaustive].
This isn't an important issue to fix (it's just an added inconvenience I have run into), and having non_exhaustive to be able to more easily update the type is probably worth not supporting the functional record update syntax, but since I haven't seen this being brought up yet I wanted to do so.
Just adding a builder type / functions like fn with_template_extension(self, extension: impl Into<String>) -> Self may potentially be a good idea though?
The text was updated successfully, but these errors were encountered:
Since #647, using non-default values for
struct
s with#[non_exhaustive]
(likeDirectorySourceOptions
for example) requires the use oflet mut
to store the default value followed by mutating that value, since using functional record updates doesn't work in the presence of#[non_exhaustive]
.This isn't an important issue to fix (it's just an added inconvenience I have run into), and having
non_exhaustive
to be able to more easily update the type is probably worth not supporting the functional record update syntax, but since I haven't seen this being brought up yet I wanted to do so.Just adding a builder type / functions like
fn with_template_extension(self, extension: impl Into<String>) -> Self
may potentially be a good idea though?The text was updated successfully, but these errors were encountered: