pub struct ScopeEntry {
pub description: String,
pub label: String,
pub value: String,
}Expand description
A scope entry with its machine name and human-readable label.
JSON schema
{
"description": "A scope entry with its machine name and human-readable label.",
"type": "object",
"required": [
"description",
"label",
"value"
],
"properties": {
"description": {
"description": "Short description.",
"type": "string"
},
"label": {
"description": "Human-readable label (e.g. \"Runs Read\").",
"type": "string"
},
"value": {
"description": "Machine-readable scope value (e.g. \"runs_read\").",
"type": "string"
}
}
}
```ignore
</details>Fields§
§description: StringShort description.
label: StringHuman-readable label (e.g. “Runs Read”).
value: StringMachine-readable scope value (e.g. “runs_read”).
Implementations§
Source§impl ScopeEntry
impl ScopeEntry
pub fn builder() -> ScopeEntry
Trait Implementations§
Source§impl Clone for ScopeEntry
impl Clone for ScopeEntry
Source§impl Debug for ScopeEntry
impl Debug for ScopeEntry
Source§impl<'de> Deserialize<'de> for ScopeEntry
impl<'de> Deserialize<'de> for ScopeEntry
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<ScopeEntry> for ScopeEntry
impl From<ScopeEntry> for ScopeEntry
Source§fn from(value: ScopeEntry) -> Self
fn from(value: ScopeEntry) -> Self
Converts to this type from the input type.
Source§impl Serialize for ScopeEntry
impl Serialize for ScopeEntry
Source§impl TryFrom<ScopeEntry> for ScopeEntry
impl TryFrom<ScopeEntry> for ScopeEntry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ScopeEntry) -> Result<Self, ConversionError>
fn try_from(value: ScopeEntry) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ScopeEntry
impl RefUnwindSafe for ScopeEntry
impl Send for ScopeEntry
impl Sync for ScopeEntry
impl Unpin for ScopeEntry
impl UnsafeUnpin for ScopeEntry
impl UnwindSafe for ScopeEntry
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