pub struct CreateWebhookBody {
pub active: Option<bool>,
pub events: Vec<String>,
pub secret: Option<String>,
pub url: String,
}Expand description
CreateWebhookBody
JSON schema
{
"type": "object",
"required": [
"events",
"url"
],
"properties": {
"active": {
"type": "boolean"
},
"events": {
"type": "array",
"items": {
"type": "string"
}
},
"secret": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
}
}Fields§
§active: Option<bool>§events: Vec<String>§secret: Option<String>§url: StringImplementations§
Source§impl CreateWebhookBody
impl CreateWebhookBody
pub fn builder() -> CreateWebhookBody
Trait Implementations§
Source§impl Clone for CreateWebhookBody
impl Clone for CreateWebhookBody
Source§fn clone(&self) -> CreateWebhookBody
fn clone(&self) -> CreateWebhookBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateWebhookBody
impl Debug for CreateWebhookBody
Source§impl<'de> Deserialize<'de> for CreateWebhookBody
impl<'de> Deserialize<'de> for CreateWebhookBody
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 From<&CreateWebhookBody> for CreateWebhookBody
impl From<&CreateWebhookBody> for CreateWebhookBody
Source§fn from(value: &CreateWebhookBody) -> Self
fn from(value: &CreateWebhookBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateWebhookBody> for CreateWebhookBody
impl From<CreateWebhookBody> for CreateWebhookBody
Source§fn from(value: CreateWebhookBody) -> Self
fn from(value: CreateWebhookBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateWebhookBody
impl Serialize for CreateWebhookBody
Source§impl TryFrom<CreateWebhookBody> for CreateWebhookBody
impl TryFrom<CreateWebhookBody> for CreateWebhookBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateWebhookBody) -> Result<Self, ConversionError>
fn try_from(value: CreateWebhookBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateWebhookBody
impl RefUnwindSafe for CreateWebhookBody
impl Send for CreateWebhookBody
impl Sync for CreateWebhookBody
impl Unpin for CreateWebhookBody
impl UnsafeUnpin for CreateWebhookBody
impl UnwindSafe for CreateWebhookBody
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