pub struct InstanceRestrictions {
pub object: Option<Object>,
pub allowlist: Option<bool>,
pub blocklist: Option<bool>,
}
Fields§
§object: Option<Object>
String representing the object’s type. Objects of the same type share the same value.
allowlist: Option<bool>
§blocklist: Option<bool>
Implementations§
Source§impl InstanceRestrictions
impl InstanceRestrictions
pub fn new() -> InstanceRestrictions
Trait Implementations§
Source§impl Clone for InstanceRestrictions
impl Clone for InstanceRestrictions
Source§fn clone(&self) -> InstanceRestrictions
fn clone(&self) -> InstanceRestrictions
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 InstanceRestrictions
impl Debug for InstanceRestrictions
Source§impl Default for InstanceRestrictions
impl Default for InstanceRestrictions
Source§fn default() -> InstanceRestrictions
fn default() -> InstanceRestrictions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceRestrictions
impl<'de> Deserialize<'de> for InstanceRestrictions
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 InstanceRestrictions
impl PartialEq for InstanceRestrictions
Source§impl Serialize for InstanceRestrictions
impl Serialize for InstanceRestrictions
impl StructuralPartialEq for InstanceRestrictions
Auto Trait Implementations§
impl Freeze for InstanceRestrictions
impl RefUnwindSafe for InstanceRestrictions
impl Send for InstanceRestrictions
impl Sync for InstanceRestrictions
impl Unpin for InstanceRestrictions
impl UnwindSafe for InstanceRestrictions
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