pub struct DownloadRestriction {
pub restricted_for_readers: Option<bool>,
pub restricted_for_writers: Option<bool>,
}Expand description
A restriction for copy and download of the file.
This type is not used in any activity, and only used as part of another schema.
Fields§
§restricted_for_readers: Option<bool>Whether download and copy is restricted for readers.
restricted_for_writers: Option<bool>Whether download and copy is restricted for writers. If true, download is also restricted for readers.
Trait Implementations§
Source§impl Clone for DownloadRestriction
impl Clone for DownloadRestriction
Source§fn clone(&self) -> DownloadRestriction
fn clone(&self) -> DownloadRestriction
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 DownloadRestriction
impl Debug for DownloadRestriction
Source§impl Default for DownloadRestriction
impl Default for DownloadRestriction
Source§fn default() -> DownloadRestriction
fn default() -> DownloadRestriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DownloadRestriction
impl<'de> Deserialize<'de> for DownloadRestriction
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 Serialize for DownloadRestriction
impl Serialize for DownloadRestriction
impl Part for DownloadRestriction
Auto Trait Implementations§
impl Freeze for DownloadRestriction
impl RefUnwindSafe for DownloadRestriction
impl Send for DownloadRestriction
impl Sync for DownloadRestriction
impl Unpin for DownloadRestriction
impl UnwindSafe for DownloadRestriction
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