pub struct AssetApi<'a>(/* private fields */);Implementations§
Source§impl<'a> AssetApi<'a>
impl<'a> AssetApi<'a>
pub async fn create(&self, asset: &NewAsset) -> EdcResult<IdResponse<String>>
pub async fn get(&self, id: &str) -> EdcResult<Asset>
pub async fn update(&self, asset: &Asset) -> EdcResult<()>
pub async fn query(&self, query: Query) -> EdcResult<Vec<Asset>>
pub async fn delete(&self, id: &str) -> EdcResult<()>
Auto Trait Implementations§
impl<'a> Freeze for AssetApi<'a>
impl<'a> !RefUnwindSafe for AssetApi<'a>
impl<'a> Send for AssetApi<'a>
impl<'a> Sync for AssetApi<'a>
impl<'a> Unpin for AssetApi<'a>
impl<'a> !UnwindSafe for AssetApi<'a>
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