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 moreAuto Trait Implementations§
impl RefUnwindSafe for AttributesRepo
impl Send for AttributesRepo
impl Sync for AttributesRepo
impl Unpin for AttributesRepo
impl UnwindSafe for AttributesRepo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more