pub struct UpdateThreadRequest {
pub starred: Option<bool>,
pub unread: Option<bool>,
pub folders: Option<Vec<String>>,
}Expand description
Request to update a thread.
Only certain fields can be updated (starred, unread, folders).
Fields§
§starred: Option<bool>Update starred status.
unread: Option<bool>Update unread status.
folders: Option<Vec<String>>Update folder IDs.
Implementations§
Source§impl UpdateThreadRequest
impl UpdateThreadRequest
Sourcepub fn builder() -> UpdateThreadRequestBuilder
pub fn builder() -> UpdateThreadRequestBuilder
Create a builder for UpdateThreadRequest.
Trait Implementations§
Source§impl Clone for UpdateThreadRequest
impl Clone for UpdateThreadRequest
Source§fn clone(&self) -> UpdateThreadRequest
fn clone(&self) -> UpdateThreadRequest
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§impl Debug for UpdateThreadRequest
impl Debug for UpdateThreadRequest
Source§impl Default for UpdateThreadRequest
impl Default for UpdateThreadRequest
Source§fn default() -> UpdateThreadRequest
fn default() -> UpdateThreadRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateThreadRequest
impl<'de> Deserialize<'de> for UpdateThreadRequest
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
impl Eq for UpdateThreadRequest
Source§impl PartialEq for UpdateThreadRequest
impl PartialEq for UpdateThreadRequest
Source§fn eq(&self, other: &UpdateThreadRequest) -> bool
fn eq(&self, other: &UpdateThreadRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateThreadRequest
impl Serialize for UpdateThreadRequest
impl StructuralPartialEq for UpdateThreadRequest
Auto Trait Implementations§
impl Freeze for UpdateThreadRequest
impl RefUnwindSafe for UpdateThreadRequest
impl Send for UpdateThreadRequest
impl Sync for UpdateThreadRequest
impl Unpin for UpdateThreadRequest
impl UnsafeUnpin for UpdateThreadRequest
impl UnwindSafe for UpdateThreadRequest
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