pub struct NewNotification {
pub notification_type: String,
pub resource_type: String,
pub provider_id: String,
pub notification: Option<Value>,
}Fields§
§notification_type: StringA notification type that is understandable for both humans and
machines (e.g. no use of special characters) providing more
information on the cause of the error.
Values that MAY be used by implementations are:
SHARE_ACCEPTED, SHARE_DECLINED, REQUEST_RESHARE,
SHARE_UNSHARED, RESHARE_UNDO, RESHARE_CHANGE_PERMISSION,
USER_REMOVED.
resource_type: StringResource type (file, folder, user, calendar, contact, …)
provider_id: StringIdentifier of the shared resource. If the resourceType is file,
then see NewShare/providerId for the required information.
If the resourceType is user, then this is the user identifier
previously sent via /invite-accepted.
notification: Option<Value>Optional additional parameters, depending on the notification and the resource type.
Trait Implementations§
Source§impl Clone for NewNotification
impl Clone for NewNotification
Source§fn clone(&self) -> NewNotification
fn clone(&self) -> NewNotification
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 NewNotification
impl Debug for NewNotification
Source§impl Default for NewNotification
impl Default for NewNotification
Source§fn default() -> NewNotification
fn default() -> NewNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NewNotification
impl<'de> Deserialize<'de> for NewNotification
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 NewNotification
impl PartialEq for NewNotification
Source§impl Serialize for NewNotification
impl Serialize for NewNotification
impl Eq for NewNotification
impl StructuralPartialEq for NewNotification
Auto Trait Implementations§
impl Freeze for NewNotification
impl RefUnwindSafe for NewNotification
impl Send for NewNotification
impl Sync for NewNotification
impl Unpin for NewNotification
impl UnwindSafe for NewNotification
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