pub struct PackUserAccess {
pub can_connect_account: bool,
pub can_edit: bool,
pub can_install: bool,
pub can_purchase: bool,
pub can_test: bool,
pub can_view: bool,
pub organization: Option<PackUserAccessOrganization>,
pub requires_trial: bool,
}
Expand description
The access capabilities the current user has for this Pack.
JSON schema
{
"description": "The access capabilities the current user has for this
Pack.",
"examples": [
"{\"canEdit\": false, \"canTest\": false, \"canView\": true,
\"canInstall\": true}"
],
"type": "object",
"required": [
"canConnectAccount",
"canEdit",
"canInstall",
"canPurchase",
"canTest",
"canView",
"requiresTrial"
],
"properties": {
"canConnectAccount": {
"type": "boolean"
},
"canEdit": {
"type": "boolean"
},
"canInstall": {
"type": "boolean"
},
"canPurchase": {
"type": "boolean"
},
"canTest": {
"type": "boolean"
},
"canView": {
"type": "boolean"
},
"organization": {
"oneOf": [
{
"$ref": "#/components/schemas/PackOrganizationAccessForDocs"
},
{
"$ref":
"#/components/schemas/PackOrganizationAccessForCodaBrain"
}
]
},
"requiresTrial": {
"type": "boolean"
}
},
"additionalProperties": false,
"x-schema-name": "PackUserAccess"
}
Fields§
§can_connect_account: bool
§can_edit: bool
§can_install: bool
§can_purchase: bool
§can_test: bool
§can_view: bool
§organization: Option<PackUserAccessOrganization>
§requires_trial: bool
Trait Implementations§
Source§impl Clone for PackUserAccess
impl Clone for PackUserAccess
Source§fn clone(&self) -> PackUserAccess
fn clone(&self) -> PackUserAccess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackUserAccess
impl Debug for PackUserAccess
Source§impl<'de> Deserialize<'de> for PackUserAccess
impl<'de> Deserialize<'de> for PackUserAccess
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
Source§impl From<&PackUserAccess> for PackUserAccess
impl From<&PackUserAccess> for PackUserAccess
Source§fn from(value: &PackUserAccess) -> Self
fn from(value: &PackUserAccess) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackUserAccess
impl RefUnwindSafe for PackUserAccess
impl Send for PackUserAccess
impl Sync for PackUserAccess
impl Unpin for PackUserAccess
impl UnwindSafe for PackUserAccess
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