Struct polar_core::resource_block::ResourceBlock
source · [−]pub struct ResourceBlock {
pub block_type: BlockType,
pub resource: Term,
pub roles: Option<Term>,
pub permissions: Option<Term>,
pub relations: Option<Term>,
pub shorthand_rules: Vec<ShorthandRule>,
}
Expand description
Successfully-parsed but not-yet-fully-validated-or-persisted resource block.
Fields
block_type: BlockType
resource: Term
roles: Option<Term>
permissions: Option<Term>
relations: Option<Term>
shorthand_rules: Vec<ShorthandRule>
Implementations
sourceimpl ResourceBlock
impl ResourceBlock
Trait Implementations
sourceimpl Clone for ResourceBlock
impl Clone for ResourceBlock
sourcefn clone(&self) -> ResourceBlock
fn clone(&self) -> ResourceBlock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResourceBlock
impl Debug for ResourceBlock
sourceimpl PartialEq<ResourceBlock> for ResourceBlock
impl PartialEq<ResourceBlock> for ResourceBlock
sourcefn eq(&self, other: &ResourceBlock) -> bool
fn eq(&self, other: &ResourceBlock) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ResourceBlock) -> bool
fn ne(&self, other: &ResourceBlock) -> bool
This method tests for !=
.
impl StructuralPartialEq for ResourceBlock
Auto Trait Implementations
impl RefUnwindSafe for ResourceBlock
impl Send for ResourceBlock
impl Sync for ResourceBlock
impl Unpin for ResourceBlock
impl UnwindSafe for ResourceBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more