pub enum ToolResourceKind {
Path,
Domain,
Command,
Remote,
}Expand description
Identifies how a permission resource string should be interpreted.
Variants§
Path
File or directory path resource.
Domain
URL host or domain resource.
Command
External command or executable resource.
Remote
Named remote resource, such as a Git remote.
Trait Implementations§
Source§impl Clone for ToolResourceKind
impl Clone for ToolResourceKind
Source§fn clone(&self) -> ToolResourceKind
fn clone(&self) -> ToolResourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToolResourceKind
Source§impl Debug for ToolResourceKind
impl Debug for ToolResourceKind
Source§impl<'de> Deserialize<'de> for ToolResourceKind
impl<'de> Deserialize<'de> for ToolResourceKind
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
impl Eq for ToolResourceKind
Source§impl JsonSchema for ToolResourceKind
impl JsonSchema for ToolResourceKind
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 ToolResourceKind
impl PartialEq for ToolResourceKind
Source§impl Serialize for ToolResourceKind
impl Serialize for ToolResourceKind
impl StructuralPartialEq for ToolResourceKind
Auto Trait Implementations§
impl Freeze for ToolResourceKind
impl RefUnwindSafe for ToolResourceKind
impl Send for ToolResourceKind
impl Sync for ToolResourceKind
impl Unpin for ToolResourceKind
impl UnsafeUnpin for ToolResourceKind
impl UnwindSafe for ToolResourceKind
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