pub struct CallbackRequest {
pub destination: String,
pub events: Vec<Event>,
}Expand description
CallbackRequest : The request body contains a JSON object with the user ID of a bot that should receive webhook events and an array of webhook event objects.
Fields§
§destination: StringUser ID of a bot that should receive webhook events. The user ID value is a string that matches the regular expression, U[0-9a-f]{32}.
events: Vec<Event>Array of webhook event objects. The LINE Platform may send an empty array that doesn’t include a webhook event object to confirm communication.
Implementations§
Trait Implementations§
Source§impl Clone for CallbackRequest
impl Clone for CallbackRequest
Source§fn clone(&self) -> CallbackRequest
fn clone(&self) -> CallbackRequest
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 CallbackRequest
impl Debug for CallbackRequest
Source§impl Default for CallbackRequest
impl Default for CallbackRequest
Source§fn default() -> CallbackRequest
fn default() -> CallbackRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallbackRequest
impl<'de> Deserialize<'de> for CallbackRequest
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 CallbackRequest
impl PartialEq for CallbackRequest
Source§impl Serialize for CallbackRequest
impl Serialize for CallbackRequest
impl StructuralPartialEq for CallbackRequest
Auto Trait Implementations§
impl Freeze for CallbackRequest
impl RefUnwindSafe for CallbackRequest
impl Send for CallbackRequest
impl Sync for CallbackRequest
impl Unpin for CallbackRequest
impl UnwindSafe for CallbackRequest
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