pub struct NotificationEntity {Show 22 fields
pub id: Option<i64>,
pub path: Option<String>,
pub group_id: Option<i64>,
pub group_name: Option<String>,
pub triggering_group_ids: Option<Vec<i64>>,
pub triggering_user_ids: Option<Vec<i64>>,
pub trigger_by_share_recipients: Option<bool>,
pub notify_user_actions: Option<bool>,
pub notify_on_copy: Option<bool>,
pub notify_on_delete: Option<bool>,
pub notify_on_download: Option<bool>,
pub notify_on_move: Option<bool>,
pub notify_on_upload: Option<bool>,
pub recursive: Option<bool>,
pub send_interval: Option<String>,
pub message: Option<String>,
pub triggering_filenames: Option<Vec<String>>,
pub unsubscribed: Option<bool>,
pub unsubscribed_reason: Option<String>,
pub user_id: Option<i64>,
pub username: Option<String>,
pub suppressed_email: Option<bool>,
}
Expand description
A Notification entity
Fields§
§id: Option<i64>
Notification ID
path: Option<String>
Folder path to notify on
group_id: Option<i64>
Group ID to receive notifications
group_name: Option<String>
Group name
triggering_group_ids: Option<Vec<i64>>
Only notify on actions by these groups
triggering_user_ids: Option<Vec<i64>>
Only notify on actions by these users
Notify on share recipient actions?
notify_user_actions: Option<bool>
Send notifications about user’s own activity?
notify_on_copy: Option<bool>
Trigger on file copy?
notify_on_delete: Option<bool>
Trigger on file delete?
notify_on_download: Option<bool>
Trigger on file download?
notify_on_move: Option<bool>
Trigger on file move?
notify_on_upload: Option<bool>
Trigger on file upload/update?
recursive: Option<bool>
Apply recursively to subfolders?
send_interval: Option<String>
Email send interval
message: Option<String>
Custom message in notification emails
triggering_filenames: Option<Vec<String>>
Filenames to trigger on (with wildcards)
unsubscribed: Option<bool>
Is user unsubscribed?
unsubscribed_reason: Option<String>
Unsubscribe reason
user_id: Option<i64>
User ID
username: Option<String>
Username
suppressed_email: Option<bool>
Email suppressed due to bounce/spam?
Trait Implementations§
Source§impl Clone for NotificationEntity
impl Clone for NotificationEntity
Source§fn clone(&self) -> NotificationEntity
fn clone(&self) -> NotificationEntity
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 NotificationEntity
impl Debug for NotificationEntity
Source§impl<'de> Deserialize<'de> for NotificationEntity
impl<'de> Deserialize<'de> for NotificationEntity
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 Freeze for NotificationEntity
impl RefUnwindSafe for NotificationEntity
impl Send for NotificationEntity
impl Sync for NotificationEntity
impl Unpin for NotificationEntity
impl UnwindSafe for NotificationEntity
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