pub struct WebhookEndpoints {
pub id: String,
pub object: Object,
pub api_version: String,
pub application: String,
pub created: i64,
pub enabled_events: Vec<EventType>,
pub livemode: bool,
pub status: EndpointStatus,
pub url: String,
pub secret: Option<String>,
}
Fields§
§id: String
§object: Object
§api_version: String
§application: String
§created: i64
§enabled_events: Vec<EventType>
§livemode: bool
§status: EndpointStatus
§url: String
§secret: Option<String>
Implementations§
Source§impl WebhookEndpoints
impl WebhookEndpoints
pub fn create<S: Serialize>(client: &Client, param: S) -> Result<Self>
pub fn retrieve(client: &Client, id: &str) -> Result<Self>
pub fn update<S: Serialize>(client: &Client, id: &str, param: S) -> Result<Self>
pub fn list<S: Serialize>(client: &Client, param: S) -> Result<List<Self>>
pub fn delete(client: &Client, id: &str) -> Result<Deleted>
Trait Implementations§
Source§impl Debug for WebhookEndpoints
impl Debug for WebhookEndpoints
Source§impl<'de> Deserialize<'de> for WebhookEndpoints
impl<'de> Deserialize<'de> for WebhookEndpoints
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 WebhookEndpoints
impl PartialEq for WebhookEndpoints
Source§impl Serialize for WebhookEndpoints
impl Serialize for WebhookEndpoints
impl StructuralPartialEq for WebhookEndpoints
Auto Trait Implementations§
impl Freeze for WebhookEndpoints
impl RefUnwindSafe for WebhookEndpoints
impl Send for WebhookEndpoints
impl Sync for WebhookEndpoints
impl Unpin for WebhookEndpoints
impl UnwindSafe for WebhookEndpoints
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more