pub struct ResourcePathAndType {
pub path: ResourcePath,
pub resource_type: ResourceType,
}
Fields§
§path: ResourcePath
§resource_type: ResourceType
Implementations§
Source§impl ResourcePathAndType
impl ResourcePathAndType
pub fn root() -> Self
pub fn parent(&self) -> Option<ResourcePath>
pub fn name(&self) -> String
pub fn resource_type(&self) -> ResourceType
Trait Implementations§
Source§impl Clone for ResourcePathAndType
impl Clone for ResourcePathAndType
Source§fn clone(&self) -> ResourcePathAndType
fn clone(&self) -> ResourcePathAndType
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 ResourcePathAndType
impl Debug for ResourcePathAndType
Source§impl<'de> Deserialize<'de> for ResourcePathAndType
impl<'de> Deserialize<'de> for ResourcePathAndType
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<ResourcePathAndType> for ResourceAddress
impl From<ResourcePathAndType> for ResourceAddress
Source§fn from(path: ResourcePathAndType) -> Self
fn from(path: ResourcePathAndType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ResourcePathAndType
impl FromStr for ResourcePathAndType
Source§impl Hash for ResourcePathAndType
impl Hash for ResourcePathAndType
Source§impl PartialEq for ResourcePathAndType
impl PartialEq for ResourcePathAndType
Source§impl Serialize for ResourcePathAndType
impl Serialize for ResourcePathAndType
Source§impl ToString for ResourcePathAndType
impl ToString for ResourcePathAndType
impl Eq for ResourcePathAndType
impl StructuralPartialEq for ResourcePathAndType
Auto Trait Implementations§
impl Freeze for ResourcePathAndType
impl RefUnwindSafe for ResourcePathAndType
impl Send for ResourcePathAndType
impl Sync for ResourcePathAndType
impl Unpin for ResourcePathAndType
impl UnwindSafe for ResourcePathAndType
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