pub struct PluginOperationsConfig {
pub approval: HashMap<String, OperationApproval>,
pub settings: HashMap<String, OperationSettingValue>,
}Expand description
Settings and approval rules for one plugin.
JSON schema
{
"description": "Settings and approval rules for one plugin.",
"type": "object",
"properties": {
"approval": {
"description": "Approval rule per operation: an operation name, or `*` for all of them.\nOperations no rule matches need approval.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/OperationApproval"
}
},
"settings": {
"description": "Values for the settings the plugin's manifest declares.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/OperationSettingValue"
}
}
}
}Fields§
§approval: HashMap<String, OperationApproval>Approval rule per operation: an operation name, or * for all of them.
Operations no rule matches need approval.
settings: HashMap<String, OperationSettingValue>Values for the settings the plugin’s manifest declares.
Implementations§
Source§impl PluginOperationsConfig
impl PluginOperationsConfig
pub fn builder() -> PluginOperationsConfig
Trait Implementations§
Source§impl Clone for PluginOperationsConfig
impl Clone for PluginOperationsConfig
Source§impl Debug for PluginOperationsConfig
impl Debug for PluginOperationsConfig
Source§impl Default for PluginOperationsConfig
impl Default for PluginOperationsConfig
Source§impl<'de> Deserialize<'de> for PluginOperationsConfig
impl<'de> Deserialize<'de> for PluginOperationsConfig
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<&PluginOperationsConfig> for PluginOperationsConfig
impl From<&PluginOperationsConfig> for PluginOperationsConfig
Source§fn from(value: &PluginOperationsConfig) -> Self
fn from(value: &PluginOperationsConfig) -> Self
Converts to this type from the input type.
Source§impl From<PluginOperationsConfig> for PluginOperationsConfig
impl From<PluginOperationsConfig> for PluginOperationsConfig
Source§fn from(value: PluginOperationsConfig) -> Self
fn from(value: PluginOperationsConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PluginOperationsConfig
impl Serialize for PluginOperationsConfig
Source§impl TryFrom<PluginOperationsConfig> for PluginOperationsConfig
impl TryFrom<PluginOperationsConfig> for PluginOperationsConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PluginOperationsConfig) -> Result<Self, ConversionError>
fn try_from(value: PluginOperationsConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PluginOperationsConfig
impl RefUnwindSafe for PluginOperationsConfig
impl Send for PluginOperationsConfig
impl Sync for PluginOperationsConfig
impl Unpin for PluginOperationsConfig
impl UnsafeUnpin for PluginOperationsConfig
impl UnwindSafe for PluginOperationsConfig
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