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

Closed
JackMeagher2001 opened this issue Nov 28, 2024 · 1 comment
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
@github-project-automation github-project-automation bot moved this to Untriaged in Azure SDK Rust Feb 5, 2025
@heaths
Copy link
Member

heaths commented Mar 20, 2025

Thank you for your report. Since we are working on official, supported crates and have no plans to release further versions of the previously unsupported crates, we have decided to close this issue. Some older issues were migrated to the new crates if they seemed relevant. If you feel that this issue was relevant even to newer code that has been or will be rewritten, please reopen and comment as to why you consider it relevant.

@heaths heaths closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2025
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