pub struct PatternGrant {
pub class: String,
pub owner: String,
pub recipient: String,
pub verb: String,
pub resource_id: String,
}Expand description
A grant pattern: class(owner) @ recipient : verb : resource-id.
Fields§
§class: String§owner: String§recipient: String§verb: String§resource_id: StringImplementations§
Trait Implementations§
Source§impl Clone for PatternGrant
impl Clone for PatternGrant
Source§impl Debug for PatternGrant
impl Debug for PatternGrant
impl Eq for PatternGrant
Source§impl FromSchema for PatternGrant
impl FromSchema for PatternGrant
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl FromWire for PatternGrant
impl FromWire for PatternGrant
fn read_wire( reader: &mut WireReader, index: ValueNodeIndex, ) -> Result<Self, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl Hash for PatternGrant
impl Hash for PatternGrant
Source§impl IntoSchema for PatternGrant
impl IntoSchema for PatternGrant
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for PatternGrant
impl IntoWire for PatternGrant
fn preflight(&self, resources: &mut WirePreflight) -> Result<(), WireError>
Source§async fn prepare_wire(&self) -> Result<(), WireError>
async fn prepare_wire(&self) -> Result<(), WireError>
Wrap native stream endpoints without reading from them. This is called
only after the complete value has passed resource preflight.
fn write_wire( &self, writer: &mut WireWriter, ) -> Result<ValueNodeIndex, WireError>
Source§const NEEDS_PREPARATION: bool = true
const NEEDS_PREPARATION: bool = true
False only when
prepare_wire is a no-op for every value of this type.
Resource preflight still runs regardless of this flag. Custom and derived
implementations prepare by default, including those with no stream schema.fn write_result_payload( &self, writer: &mut WireWriter, ) -> Result<Option<i32>, WireError>
Source§impl PartialEq for PatternGrant
impl PartialEq for PatternGrant
impl StructuralPartialEq for PatternGrant
Source§impl WireSchema for PatternGrant
impl WireSchema for PatternGrant
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
fn append_schema(builder: &mut WireSchemaBuilder) -> TypeNodeIndex
fn wire_type_id() -> String
const IS_UNIT: bool = false
Auto Trait Implementations§
impl Freeze for PatternGrant
impl RefUnwindSafe for PatternGrant
impl Send for PatternGrant
impl Sync for PatternGrant
impl Unpin for PatternGrant
impl UnsafeUnpin for PatternGrant
impl UnwindSafe for PatternGrant
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