Struct redmine_api::api::roles::Role
source · pub struct Role {
pub id: u64,
pub name: String,
pub assignable: bool,
pub issues_visibility: IssuesVisibility,
pub time_entries_visibility: TimeEntriesVisibility,
pub users_visibility: UsersVisibility,
pub permissions: Vec<String>,
}
Expand description
a type for roles to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields§
§id: u64
numeric id
name: String
display name
assignable: bool
if this is true users/groups with this role can be assignees for issues
issues_visibility: IssuesVisibility
the issues that can be seen by users/groups with this role
time_entries_visibility: TimeEntriesVisibility
the time entries that can be seen by users/groups with this role
users_visibility: UsersVisibility
the users that can be seen by users/groups with this role
permissions: Vec<String>
list of permissions, this can contain core Redmine permissions and those provided by plugins
Trait Implementations§
source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
source§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
source§impl PartialEq for Role
impl PartialEq for Role
impl Eq for Role
impl StructuralEq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.