Struct dim_database::asset::InsertableAsset
source · pub struct InsertableAsset {
pub remote_url: Option<String>,
pub local_path: String,
pub file_ext: String,
}
Fields§
§remote_url: Option<String>
§local_path: String
§file_ext: String
Implementations§
source§impl InsertableAsset
impl InsertableAsset
pub async fn insert_many(
tx: &mut Transaction<'_>,
assets: Vec<Self>
) -> Result<Vec<Asset>, DatabaseError>
pub async fn insert(
self,
conn: &mut Transaction<'_>
) -> Result<Asset, DatabaseError>
pub async fn insert_local_asset(
self,
conn: &mut Transaction<'_>
) -> Result<Asset, DatabaseError>
Trait Implementations§
source§impl Clone for InsertableAsset
impl Clone for InsertableAsset
source§fn clone(&self) -> InsertableAsset
fn clone(&self) -> InsertableAsset
Returns a copy 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 InsertableAsset
impl Debug for InsertableAsset
source§impl Default for InsertableAsset
impl Default for InsertableAsset
source§fn default() -> InsertableAsset
fn default() -> InsertableAsset
Returns the “default value” for a type. Read more