pub struct ResourcePathAndKind {
pub path: ResourcePath,
pub kind: ResourceKind,
}
Fields§
§path: ResourcePath
§kind: ResourceKind
Implementations§
Source§impl ResourcePathAndKind
impl ResourcePathAndKind
pub fn new(path: ResourcePath, kind: ResourceKind) -> Result<Self, Error>
pub fn parent(&self) -> Option<ResourcePath>
Trait Implementations§
Source§impl Clone for ResourcePathAndKind
impl Clone for ResourcePathAndKind
Source§fn clone(&self) -> ResourcePathAndKind
fn clone(&self) -> ResourcePathAndKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ResourcePathAndKind
impl Debug for ResourcePathAndKind
Source§impl<'de> Deserialize<'de> for ResourcePathAndKind
impl<'de> Deserialize<'de> for ResourcePathAndKind
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 FromStr for ResourcePathAndKind
impl FromStr for ResourcePathAndKind
Source§impl Hash for ResourcePathAndKind
impl Hash for ResourcePathAndKind
Source§impl Into<ResourcePath> for ResourcePathAndKind
impl Into<ResourcePath> for ResourcePathAndKind
Source§fn into(self) -> ResourcePath
fn into(self) -> ResourcePath
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ResourcePathAndKind
impl PartialEq for ResourcePathAndKind
Source§impl Serialize for ResourcePathAndKind
impl Serialize for ResourcePathAndKind
Source§impl ToString for ResourcePathAndKind
impl ToString for ResourcePathAndKind
impl Eq for ResourcePathAndKind
impl StructuralPartialEq for ResourcePathAndKind
Auto Trait Implementations§
impl Freeze for ResourcePathAndKind
impl RefUnwindSafe for ResourcePathAndKind
impl Send for ResourcePathAndKind
impl Sync for ResourcePathAndKind
impl Unpin for ResourcePathAndKind
impl UnwindSafe for ResourcePathAndKind
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