pub trait AuthAccess {
// Required method
fn check_auth(
&self,
owner: Identity,
caller: Identity,
) -> Result<(), AuthError>;
}Expand description
Trait for checking if the caller have access to Self
pub trait AuthAccess {
// Required method
fn check_auth(
&self,
owner: Identity,
caller: Identity,
) -> Result<(), AuthError>;
}Trait for checking if the caller have access to Self