pub enum ApiKeyScope {
WorkflowsRead,
RunsRead,
RunsWrite,
RunsManage,
StatsRead,
AccountsRead,
AccountsManage,
SignalsSend,
Admin,
}Expand description
Permission scope for an API key.
Each scope grants access to a specific set of actions. A key with no scopes has no permissions.
JSON schema
{
"description": "Permission scope for an API key.\n\nEach scope grants access to a specific set of actions.\nA key with no scopes has no permissions.",
"type": "string",
"enum": [
"workflows_read",
"runs_read",
"runs_write",
"runs_manage",
"stats_read",
"accounts_read",
"accounts_manage",
"signals_send",
"admin"
]
}
```ignore
</details>Variants§
WorkflowsRead
RunsRead
RunsWrite
RunsManage
StatsRead
AccountsRead
AccountsManage
SignalsSend
Admin
Trait Implementations§
Source§impl Clone for ApiKeyScope
impl Clone for ApiKeyScope
impl Copy for ApiKeyScope
Source§impl Debug for ApiKeyScope
impl Debug for ApiKeyScope
Source§impl<'de> Deserialize<'de> for ApiKeyScope
impl<'de> Deserialize<'de> for ApiKeyScope
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 Display for ApiKeyScope
impl Display for ApiKeyScope
impl Eq for ApiKeyScope
Source§impl FromStr for ApiKeyScope
impl FromStr for ApiKeyScope
Source§impl Hash for ApiKeyScope
impl Hash for ApiKeyScope
Source§impl Ord for ApiKeyScope
impl Ord for ApiKeyScope
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ApiKeyScope
impl PartialEq for ApiKeyScope
Source§impl PartialOrd for ApiKeyScope
impl PartialOrd for ApiKeyScope
Source§impl Serialize for ApiKeyScope
impl Serialize for ApiKeyScope
impl StructuralPartialEq for ApiKeyScope
Source§impl TryFrom<&String> for ApiKeyScope
impl TryFrom<&String> for ApiKeyScope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ApiKeyScope
impl TryFrom<&str> for ApiKeyScope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ApiKeyScope
impl TryFrom<String> for ApiKeyScope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ApiKeyScope
impl RefUnwindSafe for ApiKeyScope
impl Send for ApiKeyScope
impl Sync for ApiKeyScope
impl Unpin for ApiKeyScope
impl UnsafeUnpin for ApiKeyScope
impl UnwindSafe for ApiKeyScope
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