Struct botx_api::api::v4::notification::direct::models::DirectNotificationRequest
source · pub struct DirectNotificationRequest {
pub group_chat_id: Uuid,
pub recipients: Option<Vec<Uuid>>,
pub notification: EventPayload,
pub file: Option<File>,
pub opts: PayloadOptions,
}Fields§
§group_chat_id: Uuidидентификатор чата в который придет сообщение
recipients: Option<Vec<Uuid>>(Default: null) - huid получателей события. По умолчанию все участники чата
notification: EventPayloadБазовая часть нотификации
file: Option<File>(Default: null) - файл в base64 представление.
opts: PayloadOptionsопции запроса
Trait Implementations§
source§impl Clone for DirectNotificationRequest
impl Clone for DirectNotificationRequest
source§fn clone(&self) -> DirectNotificationRequest
fn clone(&self) -> DirectNotificationRequest
Returns a copy 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 DirectNotificationRequest
impl Debug for DirectNotificationRequest
source§impl Default for DirectNotificationRequest
impl Default for DirectNotificationRequest
source§fn default() -> DirectNotificationRequest
fn default() -> DirectNotificationRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DirectNotificationRequest
impl<'de> Deserialize<'de> for DirectNotificationRequest
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
Auto Trait Implementations§
impl RefUnwindSafe for DirectNotificationRequest
impl Send for DirectNotificationRequest
impl Sync for DirectNotificationRequest
impl Unpin for DirectNotificationRequest
impl UnwindSafe for DirectNotificationRequest
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