Struct samling::ColorsRepo
source · pub struct ColorsRepo;Implementations§
source§impl ColorsRepo
impl ColorsRepo
pub async fn list(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>
) -> Result<Vec<Color>>
pub async fn find(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Color>
) -> Result<Option<Color>>
pub async fn get(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Color>
) -> Result<Color>
pub async fn insert(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
created_by: Id<User>,
color: CreateColor
) -> Result<Color>
pub async fn update(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Color>,
color: UpdateColor
) -> Result<Color>
pub async fn upsert(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
created_by: Id<User>,
color_ref: &Ref<Color>,
color: CreateColor
) -> Result<(bool, Color)>
pub async fn delete(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Color>
) -> Result<()>
Trait Implementations§
source§impl Clone for ColorsRepo
impl Clone for ColorsRepo
source§fn clone(&self) -> ColorsRepo
fn clone(&self) -> ColorsRepo
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