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
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
Auto Trait Implementations
impl RefUnwindSafe for Role
impl UnwindSafe for Role
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