pub struct UnityPackage { /* private fields */ }Expand description
A Unity package container
Implementations§
Source§impl UnityPackage
impl UnityPackage
Sourcepub fn builder() -> UnityPackageBuilder
pub fn builder() -> UnityPackageBuilder
Create a builder for constructing packages with configuration options
Sourcepub fn add_binary(
&mut self,
path: impl Into<String>,
data: Vec<u8>,
) -> Result<&mut Self>
pub fn add_binary( &mut self, path: impl Into<String>, data: Vec<u8>, ) -> Result<&mut Self>
Add a binary asset (convenience method)
Sourcepub fn add_text(
&mut self,
path: impl Into<String>,
content: impl Into<String>,
) -> Result<&mut Self>
pub fn add_text( &mut self, path: impl Into<String>, content: impl Into<String>, ) -> Result<&mut Self>
Add a text asset (convenience method)
Sourcepub fn add_folder(&mut self, path: impl Into<String>) -> Result<&mut Self>
pub fn add_folder(&mut self, path: impl Into<String>) -> Result<&mut Self>
Add a folder (convenience method)
Trait Implementations§
Source§impl Debug for UnityPackage
impl Debug for UnityPackage
Source§impl Default for UnityPackage
impl Default for UnityPackage
Source§fn default() -> UnityPackage
fn default() -> UnityPackage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnityPackage
impl RefUnwindSafe for UnityPackage
impl Send for UnityPackage
impl Sync for UnityPackage
impl Unpin for UnityPackage
impl UnwindSafe for UnityPackage
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