Struct redmine_api::api::roles::RoleWrapper
source · [−]pub struct RoleWrapper<T> {
pub role: T,
}Expand description
A lot of APIs in Redmine wrap their data in an extra layer, this is a helper struct for outer layers with a role field holding the inner data
Fields
role: Tto parse JSON with role key
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<T> RefUnwindSafe for RoleWrapper<T> where
T: RefUnwindSafe,
impl<T> Send for RoleWrapper<T> where
T: Send,
impl<T> Sync for RoleWrapper<T> where
T: Sync,
impl<T> Unpin for RoleWrapper<T> where
T: Unpin,
impl<T> UnwindSafe for RoleWrapper<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more