pub struct NotebookShareTemplate {
pub notebook_guid: Option<Guid>,
pub recipient_contacts: Option<Vec<Contact>>,
pub privilege: Option<SharedNotebookPrivilegeLevel>,
pub recipient_thread_id: Option<MessageThreadID>,
}Expand description
A structure used to share a notebook with one or more recipients at a given privilege.
- notebookGuid
- The GUID of the notebook.
- recipientThreadId
- The recipients of the notebook share specified as a messaging thread ID. If you have an existing messaging thread to share the note with, specify its ID here instead of recipientContacts in order to properly support defunct identities. The sharer must be a participant of the thread. Either this field or recipientContacts must be set.
- recipientContacts
- The recipients of the notebook share specified as a list of contacts. This should only be set if the sharing takes place before the thread is created. Use recipientThreadId instead when sharing with an existing thread. Either this field or recipientThreadId must be set.
- privilege
- The privilege level to be granted.
Fields§
§notebook_guid: Option<Guid>§recipient_contacts: Option<Vec<Contact>>§privilege: Option<SharedNotebookPrivilegeLevel>§recipient_thread_id: Option<MessageThreadID>Implementations§
Trait Implementations§
Source§fn clone(&self) -> NotebookShareTemplate
fn clone(&self) -> NotebookShareTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> NotebookShareTemplate
fn default() -> NotebookShareTemplate
Returns the “default value” for a type. Read more
Source§fn cmp(&self, other: &NotebookShareTemplate) -> Ordering
fn cmp(&self, other: &NotebookShareTemplate) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol, ) -> Result<NotebookShareTemplate>
fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> Result<()>
Auto Trait Implementations§
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