Struct samling::CollectionsRepo
source · pub struct CollectionsRepo;Implementations§
source§impl CollectionsRepo
impl CollectionsRepo
pub async fn list(
&self,
client: &impl GenericClient,
metadata: RequestMetaData
) -> Result<Vec<Collection>>
pub async fn list_summaries(
&self,
client: &impl GenericClient,
metadata: RequestMetaData
) -> Result<Vec<CollectionSummary>>
pub async fn find(
&self,
client: &impl GenericClient,
metadata: RequestMetaData,
collection_ref: &Ref<Collection>
) -> Result<Option<Collection>>
pub async fn get(
&self,
client: &impl GenericClient,
metadata: RequestMetaData,
ref_: &Ref<Collection>
) -> Result<Collection>
pub async fn get_summary(
&self,
client: &impl GenericClient,
metadata: RequestMetaData,
collection_ref: &Ref<Collection>
) -> Result<CollectionSummary>
pub async fn insert(
&self,
client: &mut Object,
cloudflare_api: CloudflareApi,
metadata: RequestMetaData,
collection: CreateCollection
) -> Result<Collection>
pub async fn update(
&self,
client: &mut Object,
cloudflare_api: CloudflareApi,
metadata: RequestMetaData,
collection_ref: &Ref<Collection>,
collection: UpdateCollection
) -> Result<Collection>
pub async fn upsert(
&self,
client: &mut Object,
cloudflare_api: CloudflareApi,
metadata: RequestMetaData,
collection_ref: &Ref<Collection>,
collection: CreateCollection
) -> Result<(bool, Collection)>
pub async fn delete(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
collection_ref: &Ref<Collection>
) -> Result<()>
Trait Implementations§
source§impl Clone for CollectionsRepo
impl Clone for CollectionsRepo
source§fn clone(&self) -> CollectionsRepo
fn clone(&self) -> CollectionsRepo
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