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: u64numeric id
name: Stringdisplay name
assignable: boolif this is true users/groups with this role can be assignees for issues
issues_visibility: IssuesVisibilitythe issues that can be seen by users/groups with this role
time_entries_visibility: TimeEntriesVisibilitythe time entries that can be seen by users/groups with this role
users_visibility: UsersVisibilitythe 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