#[non_exhaustive]pub struct ResourceProperties {
pub excludes_descendants: bool,
/* private fields */
}Expand description
The properties associated with the resource of the request.
Fields (Non-exhaustive)§
This struct is marked as 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.excludes_descendants: boolWhether an approval will exclude the descendants of the resource being requested.
Implementations§
Source§impl ResourceProperties
impl ResourceProperties
pub fn new() -> Self
Sourcepub fn set_excludes_descendants<T: Into<bool>>(self, v: T) -> Self
pub fn set_excludes_descendants<T: Into<bool>>(self, v: T) -> Self
Sets the value of excludes_descendants.
§Example
ⓘ
let x = ResourceProperties::new().set_excludes_descendants(true);Trait Implementations§
Source§impl Clone for ResourceProperties
impl Clone for ResourceProperties
Source§fn clone(&self) -> ResourceProperties
fn clone(&self) -> ResourceProperties
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 ResourceProperties
impl Debug for ResourceProperties
Source§impl Default for ResourceProperties
impl Default for ResourceProperties
Source§fn default() -> ResourceProperties
fn default() -> ResourceProperties
Returns the “default value” for a type. Read more
Source§impl Message for ResourceProperties
impl Message for ResourceProperties
Source§impl PartialEq for ResourceProperties
impl PartialEq for ResourceProperties
impl StructuralPartialEq for ResourceProperties
Auto Trait Implementations§
impl Freeze for ResourceProperties
impl RefUnwindSafe for ResourceProperties
impl Send for ResourceProperties
impl Sync for ResourceProperties
impl Unpin for ResourceProperties
impl UnsafeUnpin for ResourceProperties
impl UnwindSafe for ResourceProperties
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