pub struct PermissionConfig {
pub enabled: bool,
pub purpose: Option<String>,
}Expand description
One optional permission and its operating-system prompt text.
Fields§
§enabled: boolWhether the platform permission is generated.
purpose: Option<String>Non-empty, application-specific reason shown before or inside the system prompt.
Trait Implementations§
Source§impl Clone for PermissionConfig
impl Clone for PermissionConfig
Source§impl Debug for PermissionConfig
impl Debug for PermissionConfig
Source§impl Default for PermissionConfig
impl Default for PermissionConfig
Source§impl<'de> Deserialize<'de> for PermissionConfigwhere
PermissionConfig: Default,
impl<'de> Deserialize<'de> for PermissionConfigwhere
PermissionConfig: Default,
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 JsonSchema for PermissionConfig
impl JsonSchema for PermissionConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PermissionConfig
impl PartialEq for PermissionConfig
Source§impl Serialize for PermissionConfig
impl Serialize for PermissionConfig
impl StructuralPartialEq for PermissionConfig
Auto Trait Implementations§
impl Freeze for PermissionConfig
impl RefUnwindSafe for PermissionConfig
impl Send for PermissionConfig
impl Sync for PermissionConfig
impl Unpin for PermissionConfig
impl UnsafeUnpin for PermissionConfig
impl UnwindSafe for PermissionConfig
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