[−][src]Type Definition extrahop::sharing::SharingPatch
type SharingPatch = Sharing<Option<Role>>;
A delta update to a resource's sharing state.
A no-op patch can be created using SharingPatch::default()
.
Examples
Setting anyone
to None
will avoid updating the base access level for all
authenticated users. To unshare a dashboard from the "all users" group, set
the property to Some(None)
.
use extrahop::sharing::{Role, SharingPatch}; let make_private = SharingPatch { anyone: Some(None), ..SharingPatch::default() };
Sharing a dashboard to everyone is done using Some(Some(Role::Viewer))
.
let make_public = SharingPatch { anyone: Some(Some(Role::Viewer)), ..SharingPatch::default() };