Struct 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
sourceimpl 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>
Trait Implementations
sourceimpl Clone for InsertableAsset
impl Clone for InsertableAsset
sourcefn clone(&self) -> InsertableAsset
fn clone(&self) -> InsertableAsset
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InsertableAsset
impl Debug for InsertableAsset
sourceimpl Default for InsertableAsset
impl Default for InsertableAsset
sourcefn default() -> InsertableAsset
fn default() -> InsertableAsset
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for InsertableAsset
impl Send for InsertableAsset
impl Sync for InsertableAsset
impl Unpin for InsertableAsset
impl UnwindSafe for InsertableAsset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more