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