pub struct ResourceSpecification {
pub declaring_crate_name: String,
pub declaring_crate_version: Version,
pub encoding: ResourceEncoding,
pub full_crate_path: Utf8PathBuf,
pub output_path: Utf8PathBuf,
pub resource_name: String,
pub is_local: bool,
}Expand description
The fully populated resource specification (derived from a crate’s resource declaration).
Fields§
§declaring_crate_name: StringThe crate identifier
declaring_crate_version: VersionThe crate version
encoding: ResourceEncodingWhether resource’s file encoding is text or binary
full_crate_path: Utf8PathBufThe full path of the resource within the crate.
output_path: Utf8PathBufThe path of the resource as a resource
resource_name: StringThe unique name for the resource
is_local: boolWhether the package is local/patched or from a package registry.
Trait Implementations§
Source§impl Clone for ResourceSpecification
impl Clone for ResourceSpecification
Source§fn clone(&self) -> ResourceSpecification
fn clone(&self) -> ResourceSpecification
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 ResourceSpecification
impl Debug for ResourceSpecification
Source§impl<'de> Deserialize<'de> for ResourceSpecification
impl<'de> Deserialize<'de> for ResourceSpecification
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
Auto Trait Implementations§
impl Freeze for ResourceSpecification
impl RefUnwindSafe for ResourceSpecification
impl Send for ResourceSpecification
impl Sync for ResourceSpecification
impl Unpin for ResourceSpecification
impl UnwindSafe for ResourceSpecification
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