pub struct EntityDispatch {
pub entity_id: u64,
pub path: &'static str,
pub load_keys: LoadHandler,
pub save_key: SaveHandler,
pub delete_keys: DeleteHandler,
}Expand description
Metadata and typed handlers for a single entity path.
Generated actor code exposes a dispatch_entity(path) function that returns this,
letting you authorize per-entity before invoking the handlers. No canister
endpoints are generated automatically.
Fields§
§entity_id: u64§path: &'static str§load_keys: LoadHandler§save_key: SaveHandler§delete_keys: DeleteHandlerTrait Implementations§
Source§impl Clone for EntityDispatch
impl Clone for EntityDispatch
Source§fn clone(&self) -> EntityDispatch
fn clone(&self) -> EntityDispatch
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 moreimpl Copy for EntityDispatch
Auto Trait Implementations§
impl Freeze for EntityDispatch
impl RefUnwindSafe for EntityDispatch
impl Send for EntityDispatch
impl Sync for EntityDispatch
impl Unpin for EntityDispatch
impl UnwindSafe for EntityDispatch
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