Struct safe_core::ipc::AuthReq
[−]
[src]
pub struct AuthReq { pub app: AppExchangeInfo, pub app_container: bool, pub containers: HashMap<String, ContainerPermissions>, }
Represents an authorization request
Fields
app: AppExchangeInfo
The application identifier for this request
app_container: bool
true
if the app wants dedicated container for itself. false
otherwise.
containers: HashMap<String, ContainerPermissions>
The list of containers it wishes to access (and desired permissions).
Methods
impl AuthReq
[src]
fn into_repr_c(self) -> Result<AuthReq, IpcError>
[src]
Consumes the object and returns the FFI counterpart.
You're now responsible for freeing the subobjects memory once you're done.
Trait Implementations
impl Clone for AuthReq
[src]
fn clone(&self) -> AuthReq
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for AuthReq
[src]
impl Eq for AuthReq
[src]
impl PartialEq for AuthReq
[src]
fn eq(&self, __arg_0: &AuthReq) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AuthReq) -> bool
[src]
This method tests for !=
.
impl ReprC for AuthReq
[src]
type C = *const AuthReq
C representation of the type
type Error = IpcError
Error type
unsafe fn clone_from_repr_c(repr_c: *const AuthReq) -> Result<Self, IpcError>
[src]
Constructs the object from the FFI counterpart.
After calling this function, the subobjects memory is owned by the resulting object.