fix: Replace Option<Vec<T>> with Vec<T>
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>pull/24376/head
parent
f80a3ee0a6
commit
be6e72bad3
|
@ -35,8 +35,8 @@ pub struct Bucket {
|
||||||
/// Rules to expire or retain data. No rules means data never expires.
|
/// Rules to expire or retain data. No rules means data never expires.
|
||||||
pub retention_rules: Vec<crate::models::RetentionRule>,
|
pub retention_rules: Vec<crate::models::RetentionRule>,
|
||||||
/// Bucket labels
|
/// Bucket labels
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub labels: Option<Vec<crate::models::Label>>,
|
pub labels: Vec<crate::models::Label>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Bucket {
|
impl Bucket {
|
||||||
|
@ -99,8 +99,8 @@ pub struct Buckets {
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub links: Option<crate::models::Links>,
|
pub links: Option<crate::models::Links>,
|
||||||
/// Buckets
|
/// Buckets
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub buckets: Option<Vec<crate::models::Bucket>>,
|
pub buckets: Vec<crate::models::Bucket>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Buckets {
|
impl Buckets {
|
||||||
|
|
|
@ -91,8 +91,8 @@ pub struct Organizations {
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub links: Option<crate::models::Links>,
|
pub links: Option<crate::models::Links>,
|
||||||
/// List of organizations
|
/// List of organizations
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub orgs: Option<Vec<crate::models::Organization>>,
|
pub orgs: Vec<crate::models::Organization>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Organizations {
|
impl Organizations {
|
||||||
|
|
|
@ -63,8 +63,8 @@ pub struct Users {
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub links: Option<crate::models::UsersLinks>,
|
pub links: Option<crate::models::UsersLinks>,
|
||||||
/// List of users
|
/// List of users
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub users: Option<Vec<crate::models::User>>,
|
pub users: Vec<crate::models::User>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Users {
|
impl Users {
|
||||||
|
|
Loading…
Reference in New Issue