pub struct PackageResource {
pub package_id: String,
pub kind: PackageResourceKind,
pub path: String,
pub name: String,
pub enabled: bool,
pub requires_approval: bool,
}Expand description
One enumerated resource inside an installed package.
Fields§
§package_id: String§kind: PackageResourceKind§path: StringPath relative to the package root (slash-separated).
name: StringShort resource name (skill name, command name, theme id, extension id).
enabled: bool§requires_approval: boolTrue for resources that execute code and therefore require approval.
Implementations§
Trait Implementations§
Source§impl Clone for PackageResource
impl Clone for PackageResource
Source§fn clone(&self) -> PackageResource
fn clone(&self) -> PackageResource
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 moreSource§impl Debug for PackageResource
impl Debug for PackageResource
Source§impl<'de> Deserialize<'de> for PackageResource
impl<'de> Deserialize<'de> for PackageResource
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 PackageResource
Source§impl PartialEq for PackageResource
impl PartialEq for PackageResource
Source§fn eq(&self, other: &PackageResource) -> bool
fn eq(&self, other: &PackageResource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PackageResource
impl Serialize for PackageResource
impl StructuralPartialEq for PackageResource
Auto Trait Implementations§
impl Freeze for PackageResource
impl RefUnwindSafe for PackageResource
impl Send for PackageResource
impl Sync for PackageResource
impl Unpin for PackageResource
impl UnsafeUnpin for PackageResource
impl UnwindSafe for PackageResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.