pub struct Role;
Role definitions in sylvia-iot platform.
The system administrator who has all privileges.
The developer who can create clients.
The system manager who has much of priviledges than normal user.
The service (process, program, client).
To check if a user who has role_map with the specific role_name.
role_map
role_name
TypeId
self
Returns the argument unchanged.
Span
Instrumented
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U
Self
Subscriber
WithDispatch