pub enum ExternalRequestRef<'a> {
Read {
schema: &'a Schema,
types: &'a [TypeName],
state: StateData,
},
Write {
schema: &'a Schema,
ops: &'a [Op],
state: StateData,
},
EnsureSchema {
schema: &'a Schema,
},
PreviewSchema {
schema: &'a Schema,
},
}Expand description
borrowed host-side serializer; keep field-compatible with ExternalRequest.
Variants§
Read
read inventory for the requested types.
Write
apply a set of operations.
EnsureSchema
ensure the backend schema exists.
PreviewSchema
preview what ensuring the backend schema would provision, writing nothing.
Trait Implementations§
Source§impl<'a> Debug for ExternalRequestRef<'a>
impl<'a> Debug for ExternalRequestRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExternalRequestRef<'a>
impl<'a> RefUnwindSafe for ExternalRequestRef<'a>
impl<'a> Send for ExternalRequestRef<'a>
impl<'a> Sync for ExternalRequestRef<'a>
impl<'a> Unpin for ExternalRequestRef<'a>
impl<'a> UnsafeUnpin for ExternalRequestRef<'a>
impl<'a> UnwindSafe for ExternalRequestRef<'a>
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