Struct hydrate_data::json_storage::AssetJson
source · pub struct AssetJson { /* private fields */ }Implementations§
source§impl AssetJson
impl AssetJson
pub fn load_asset_from_string( restore_asset_impl: &mut dyn RestoreAssetFromStorageImpl, schema_set: &SchemaSet, override_asset_id: Option<Uuid>, default_asset_location: AssetLocation, override_asset_location: Option<AssetLocation>, json: &str ) -> DataSetResult<AssetId>
pub fn save_asset_to_string( schema_set: &SchemaSet, assets: &HashMap<AssetId, DataSetAssetInfo>, asset_id: AssetId, include_asset_id_in_file: bool, asset_location: Option<AssetLocation> ) -> String
Trait Implementations§
source§impl<'de> Deserialize<'de> for AssetJson
impl<'de> Deserialize<'de> for AssetJson
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 RefUnwindSafe for AssetJson
impl Send for AssetJson
impl Sync for AssetJson
impl Unpin for AssetJson
impl UnwindSafe for AssetJson
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