pub struct ClusterNotificationsCreateWebhookEndpointRequest {
pub body: Option<String>,
pub comment: Option<String>,
pub disable: Option<PveBoolean>,
pub header: Option<Vec<String>>,
pub method: PveMethodEnum,
pub name: String,
pub secret: Option<Vec<String>>,
pub url: String,
}Fields§
§body: Option<String>HTTP body, base64 encoded
comment: Option<String>Comment
disable: Option<PveBoolean>Disable this target
header: Option<Vec<String>>HTTP headers to set. These have to be formatted as a property string in the format name=
method: PveMethodEnumHTTP method
name: StringThe name of the endpoint.
secret: Option<Vec<String>>Secrets to set. These have to be formatted as a property string in the format name=
url: StringServer URL
Implementations§
Source§impl ClusterNotificationsCreateWebhookEndpointRequest
impl ClusterNotificationsCreateWebhookEndpointRequest
pub fn new( method: PveMethodEnum, name: String, url: String, ) -> ClusterNotificationsCreateWebhookEndpointRequest
Trait Implementations§
Source§impl Clone for ClusterNotificationsCreateWebhookEndpointRequest
impl Clone for ClusterNotificationsCreateWebhookEndpointRequest
Source§fn clone(&self) -> ClusterNotificationsCreateWebhookEndpointRequest
fn clone(&self) -> ClusterNotificationsCreateWebhookEndpointRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ClusterNotificationsCreateWebhookEndpointRequest
impl Default for ClusterNotificationsCreateWebhookEndpointRequest
Source§fn default() -> ClusterNotificationsCreateWebhookEndpointRequest
fn default() -> ClusterNotificationsCreateWebhookEndpointRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterNotificationsCreateWebhookEndpointRequest
impl<'de> Deserialize<'de> for ClusterNotificationsCreateWebhookEndpointRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClusterNotificationsCreateWebhookEndpointRequest
impl PartialEq for ClusterNotificationsCreateWebhookEndpointRequest
Source§fn eq(&self, other: &ClusterNotificationsCreateWebhookEndpointRequest) -> bool
fn eq(&self, other: &ClusterNotificationsCreateWebhookEndpointRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterNotificationsCreateWebhookEndpointRequest
Auto Trait Implementations§
impl Freeze for ClusterNotificationsCreateWebhookEndpointRequest
impl RefUnwindSafe for ClusterNotificationsCreateWebhookEndpointRequest
impl Send for ClusterNotificationsCreateWebhookEndpointRequest
impl Sync for ClusterNotificationsCreateWebhookEndpointRequest
impl Unpin for ClusterNotificationsCreateWebhookEndpointRequest
impl UnsafeUnpin for ClusterNotificationsCreateWebhookEndpointRequest
impl UnwindSafe for ClusterNotificationsCreateWebhookEndpointRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more