Skip to content

[sidekick/discovery]: map setters do not seem right #2409

@coryan

Description

@coryan

The generated code includes:

    /// Sets the value of [labels][crate::model::AttachedDiskInitializeParams::labels].
    pub fn set_labels<
        T: std::convert::Into<std::collections::HashMap<std::string::String, std::string::String>>,
    >(
        mut self,
        v: T,
    ) -> Self {
        self.labels = v.into();
        self
    }

I would expect that to consume an iterator.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions