pub struct SharePermissionInputBean {
pub type: Type,
pub project_id: Option<String>,
pub groupname: Option<String>,
pub project_role_id: Option<String>,
}
Fields§
§type: Type
The type of the share permission.Specify the type as follows: * group
Share with a group. Specify groupname
as well. * project
Share with a project. Specify projectId
as well. * projectRole
Share with a project role in a project. Specify projectId
and projectRoleId
as well. * global
Share globally, including anonymous users. If set, this type overrides all existing share permissions and must be deleted before any non-global share permissions is set. * authenticated
Share with all logged-in users. This shows as loggedin
in the response. If set, this type overrides all existing share permissions and must be deleted before any non-global share permissions is set.
project_id: Option<String>
The ID of the project to share the filter with. Set type
to project
.
groupname: Option<String>
The name of the group to share the filter with. Set type
to group
.
project_role_id: Option<String>
The ID of the project role to share the filter with. Set type
to projectRole
and the projectId
for the project that the role is in.
Implementations§
pub fn new(type: Type) -> SharePermissionInputBean
Trait Implementations§
Source§fn clone(&self) -> SharePermissionInputBean
fn clone(&self) -> SharePermissionInputBean
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more