pub struct ExpandRequest {
pub object: Object,
pub relation: Relation,
pub consistency: Consistency,
}Expand description
Request for expanding an object relation or permission at a specified consistency level.
Fields§
§object: ObjectProtected object to expand.
relation: RelationRelation or permission to expand.
consistency: ConsistencyConsistency selector for the read.
Implementations§
Source§impl ExpandRequest
impl ExpandRequest
Sourcepub fn new(object: Object, relation: Relation, consistency: Consistency) -> Self
pub fn new(object: Object, relation: Relation, consistency: Consistency) -> Self
Creates an expand request.
Sourcepub fn validate(&self) -> Result<(), DomainError>
pub fn validate(&self) -> Result<(), DomainError>
Validates domain fields in this expand request.
§Errors
Returns DomainError when the object or relation is invalid.
Trait Implementations§
Source§impl Clone for ExpandRequest
impl Clone for ExpandRequest
Source§fn clone(&self) -> ExpandRequest
fn clone(&self) -> ExpandRequest
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 ExpandRequest
impl Debug for ExpandRequest
Source§impl<'de> Deserialize<'de> for ExpandRequest
impl<'de> Deserialize<'de> for ExpandRequest
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 ExpandRequest
impl PartialEq for ExpandRequest
Source§fn eq(&self, other: &ExpandRequest) -> bool
fn eq(&self, other: &ExpandRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExpandRequest
impl Serialize for ExpandRequest
impl Eq for ExpandRequest
impl StructuralPartialEq for ExpandRequest
Auto Trait Implementations§
impl Freeze for ExpandRequest
impl RefUnwindSafe for ExpandRequest
impl Send for ExpandRequest
impl Sync for ExpandRequest
impl Unpin for ExpandRequest
impl UnsafeUnpin for ExpandRequest
impl UnwindSafe for ExpandRequest
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