Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default is not implemented for 0.21.0 of the azure_mgmt_monitor crate. Specifically the package_preview_2023_09 feature. #1936

Open
JackMeagher2001 opened this issue Nov 28, 2024 · 0 comments
Labels
Mgmt This issue is related to a management-plane library. Previous Versions Work related to older, unsupported SDKs

Comments

@JackMeagher2001
Copy link

As part of upgrading to 0.21.0 of azure_mgmt_monitor I'm seeing build errors on the package_preview_2023_09 feature. I've also tried building this crate directly in the source repo and I see the same errors.

error[E0277]: the trait bound `AzureResource: Default` is not satisfied
   --> src/package_preview_2023_09/models.rs:352:5
    |
349 | #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
    |                                                           ------- in this derive macro expansion
...
352 |     pub azure_resource: AzureResource,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `AzureResource`
    |
    = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `AzureResource` with `#[derive(Default)]`
    |
1239+ #[derive(Default)]
1240| pub struct AzureResource {

Other errors under the same build are:

  • error[E0277]: the trait bound package_preview_2023_09::models::Resource: Default is not satisfied
    --> src/package_preview_2023_09/models.rs:5550:5
  • error[E0599]: no function or associated item named default found for struct package_preview_2023_09::models::Resource in the current scope
    --> src/package_preview_2023_09/models.rs:7285:33
@heaths heaths added Mgmt This issue is related to a management-plane library. Previous Versions Work related to older, unsupported SDKs labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt This issue is related to a management-plane library. Previous Versions Work related to older, unsupported SDKs
Projects
None yet
Development

No branches or pull requests

2 participants