Struct dropbox_sdk::files::FileLockMetadata [−][src]
#[non_exhaustive]pub struct FileLockMetadata { pub is_lockholder: Option<bool>, pub lockholder_name: Option<String>, pub lockholder_account_id: Option<AccountId>, pub created: Option<DropboxTimestamp>, }
This is supported on crate feature
dbx_files only.Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_lockholder: Option<bool>True if caller holds the file lock.
lockholder_name: Option<String>The display name of the lock holder.
lockholder_account_id: Option<AccountId>The account ID of the lock holder if known.
created: Option<DropboxTimestamp>The timestamp of the lock was created.
Implementations
impl FileLockMetadata[src]
impl FileLockMetadata[src]pub fn with_is_lockholder(self, value: bool) -> Self[src]
pub fn with_lockholder_name(self, value: String) -> Self[src]
pub fn with_lockholder_account_id(self, value: AccountId) -> Self[src]
pub fn with_created(self, value: DropboxTimestamp) -> Self[src]
Trait Implementations
impl Clone for FileLockMetadata[src]
impl Clone for FileLockMetadata[src]fn clone(&self) -> FileLockMetadata[src]
fn clone(&self) -> FileLockMetadata[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for FileLockMetadata[src]
impl Debug for FileLockMetadata[src]impl Default for FileLockMetadata[src]
impl Default for FileLockMetadata[src]impl<'de> Deserialize<'de> for FileLockMetadata[src]
impl<'de> Deserialize<'de> for FileLockMetadata[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<FileLockMetadata> for FileLockMetadata[src]
impl PartialEq<FileLockMetadata> for FileLockMetadata[src]fn eq(&self, other: &FileLockMetadata) -> bool[src]
fn eq(&self, other: &FileLockMetadata) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &FileLockMetadata) -> bool[src]
fn ne(&self, other: &FileLockMetadata) -> bool[src]This method tests for !=.
impl Serialize for FileLockMetadata[src]
impl Serialize for FileLockMetadata[src]impl StructuralPartialEq for FileLockMetadata[src]
Auto Trait Implementations
impl RefUnwindSafe for FileLockMetadata
impl Send for FileLockMetadata
impl Sync for FileLockMetadata
impl Unpin for FileLockMetadata
impl UnwindSafe for FileLockMetadata
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,