Am 09.04.24 um 15:25 schrieb Lukas Wagner: > +#[api] > +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, PartialOrd)] > +#[serde(rename_all = "kebab-case")] > +/// Target information > +pub struct Target { > + /// Name of the endpoint > + name: String, > + /// Origin of the endpoint > + origin: Origin, > + /// Type of the endpoint > + #[serde(rename = "type")] > + endpoint_type: EndpointType, > + /// Target is disabled
Oh, and don't we want: #[serde(skip_serializing_if = "Option::is_none")] here? > + disable: Option<bool>, > + /// Comment > + comment: Option<String>, > +} > + _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel