pub struct ResourceDataDeclaration {
pub encoding: Option<ResourceEncoding>,
pub crate_path: Utf8PathBuf,
pub output_path: Option<Utf8PathBuf>,
pub resource_name: Option<ResourceName>,
}Expand description
The structure matching the resource declaration (provides) in the package metadata.
Fields§
§encoding: Option<ResourceEncoding>Whether resource’s file encoding is text or binary
crate_path: Utf8PathBufThe path of the resource within the crate
output_path: Option<Utf8PathBuf>The path of the resource as a resource
resource_name: Option<ResourceName>The unique name for the resource
Trait Implementations§
Source§impl Debug for ResourceDataDeclaration
impl Debug for ResourceDataDeclaration
Source§impl<'de> Deserialize<'de> for ResourceDataDeclaration
impl<'de> Deserialize<'de> for ResourceDataDeclaration
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 ResourceDataDeclaration
impl RefUnwindSafe for ResourceDataDeclaration
impl Send for ResourceDataDeclaration
impl Sync for ResourceDataDeclaration
impl Unpin for ResourceDataDeclaration
impl UnwindSafe for ResourceDataDeclaration
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