pub struct PackWorkspacePrincipal {
pub type_: PackWorkspacePrincipalType,
pub workspace_id: String,
}
Expand description
PackWorkspacePrincipal
JSON schema
{
"type": "object",
"required": [
"type",
"workspaceId"
],
"properties": {
"type": {
"type": "string",
"enum": [
"workspace"
],
"x-tsType": "PackPrincipalType.Workspace"
},
"workspaceId": {
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PackWorkspacePrincipal"
}
Fields§
§type_: PackWorkspacePrincipalType
§workspace_id: String
Trait Implementations§
Source§impl Clone for PackWorkspacePrincipal
impl Clone for PackWorkspacePrincipal
Source§fn clone(&self) -> PackWorkspacePrincipal
fn clone(&self) -> PackWorkspacePrincipal
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 PackWorkspacePrincipal
impl Debug for PackWorkspacePrincipal
Source§impl<'de> Deserialize<'de> for PackWorkspacePrincipal
impl<'de> Deserialize<'de> for PackWorkspacePrincipal
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<&PackWorkspacePrincipal> for PackWorkspacePrincipal
impl From<&PackWorkspacePrincipal> for PackWorkspacePrincipal
Source§fn from(value: &PackWorkspacePrincipal) -> Self
fn from(value: &PackWorkspacePrincipal) -> Self
Converts to this type from the input type.
Source§impl From<PackWorkspacePrincipal> for PackPrincipal
impl From<PackWorkspacePrincipal> for PackPrincipal
Source§fn from(value: PackWorkspacePrincipal) -> Self
fn from(value: PackWorkspacePrincipal) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackWorkspacePrincipal
impl RefUnwindSafe for PackWorkspacePrincipal
impl Send for PackWorkspacePrincipal
impl Sync for PackWorkspacePrincipal
impl Unpin for PackWorkspacePrincipal
impl UnwindSafe for PackWorkspacePrincipal
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