Struct samling::AttributesRepo
source · pub struct AttributesRepo;Implementations§
source§impl AttributesRepo
impl AttributesRepo
pub async fn list(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>
) -> Result<Vec<Attribute>>
pub async fn find(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Attribute>
) -> Result<Option<Attribute>>
pub async fn get(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Attribute>
) -> Result<Attribute>
pub async fn insert(
&self,
client: &mut Object,
organization_id: Id<Organization>,
created_by: Id<User>,
attribute: CreateAttribute
) -> Result<Attribute>
pub async fn update(
&self,
client: &mut Object,
organization_id: Id<Organization>,
ref_: &Ref<Attribute>,
attribute: UpdateAttribute
) -> Result<Attribute>
pub async fn upsert(
&self,
client: &mut Object,
organization_id: Id<Organization>,
created_by: Id<User>,
ref_: &Ref<Attribute>,
attribute: CreateAttribute
) -> Result<(bool, Attribute)>
pub async fn delete(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<Attribute>
) -> Result<()>
Trait Implementations§
source§impl Clone for AttributesRepo
impl Clone for AttributesRepo
source§fn clone(&self) -> AttributesRepo
fn clone(&self) -> AttributesRepo
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