[pve-devel] [PATCH proxmox 07/19] notify: api: add get_targets

Fiona Ebner f.ebner at proxmox.com
Fri Apr 19 10:37:15 CEST 2024


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>,
> +}
> +




More information about the pve-devel mailing list