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
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
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