pub struct SharingPolicyInfo {
pub allowed_email_domains: Option<Vec<String>>,
pub default_share_link_ttl: Option<i64>,
pub enable: Option<bool>,
}Fields§
§allowed_email_domains: Option<Vec<String>>AllowedEmailDomains limits email sharing to these domains. By default all domains are allowed.
enable: Option<bool>Implementations§
Source§impl SharingPolicyInfo
impl SharingPolicyInfo
pub fn new() -> SharingPolicyInfo
Trait Implementations§
Source§impl Clone for SharingPolicyInfo
impl Clone for SharingPolicyInfo
Source§fn clone(&self) -> SharingPolicyInfo
fn clone(&self) -> SharingPolicyInfo
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 SharingPolicyInfo
impl Debug for SharingPolicyInfo
Source§impl Default for SharingPolicyInfo
impl Default for SharingPolicyInfo
Source§fn default() -> SharingPolicyInfo
fn default() -> SharingPolicyInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SharingPolicyInfo
impl<'de> Deserialize<'de> for SharingPolicyInfo
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 PartialEq for SharingPolicyInfo
impl PartialEq for SharingPolicyInfo
Source§fn eq(&self, other: &SharingPolicyInfo) -> bool
fn eq(&self, other: &SharingPolicyInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SharingPolicyInfo
impl Serialize for SharingPolicyInfo
impl StructuralPartialEq for SharingPolicyInfo
Auto Trait Implementations§
impl Freeze for SharingPolicyInfo
impl RefUnwindSafe for SharingPolicyInfo
impl Send for SharingPolicyInfo
impl Sync for SharingPolicyInfo
impl Unpin for SharingPolicyInfo
impl UnsafeUnpin for SharingPolicyInfo
impl UnwindSafe for SharingPolicyInfo
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