Struct samling::ImagesRepo
source · pub struct ImagesRepo;Implementations§
source§impl ImagesRepo
impl ImagesRepo
pub async fn list(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>
) -> Result<Vec<Image>>
pub async fn find(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
image_ref: &Ref<Image>
) -> Result<Option<Image>>
pub async fn get(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Image>
) -> Result<Image>
pub async fn insert(
&self,
client: &impl GenericClient,
cloudflare_api: &CloudflareApi,
organization_id: Id<Organization>,
uploaded_by: Id<User>,
source_image: UploadSourceImage
) -> Result<Image>
pub async fn update(
&self,
client: &impl GenericClient,
cloudflare_api: &CloudflareApi,
organization_id: Id<Organization>,
image_ref: &Ref<Image>,
source_image: UploadSourceImage
) -> Result<Image>
pub async fn upsert(
&self,
client: &impl GenericClient,
cloudflare_api: &CloudflareApi,
organization_id: Id<Organization>,
uploaded_by: Id<User>,
image_ref: &Ref<Image>,
source_image: UploadSourceImage
) -> Result<(bool, Image)>
pub async fn delete(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
image_ref: &Ref<Image>
) -> Result<()>
Trait Implementations§
source§impl Clone for ImagesRepo
impl Clone for ImagesRepo
source§fn clone(&self) -> ImagesRepo
fn clone(&self) -> ImagesRepo
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 more