pub struct CustomObjects { /* private fields */ }Expand description
Custom object operations interface.
Implementations§
Source§impl CustomObjects
impl CustomObjects
pub fn create_type( &self, input: CreateCustomObjectType, ) -> Result<CustomObjectType>
pub fn get_type(&self, id: Uuid) -> Result<Option<CustomObjectType>>
pub fn get_type_by_handle( &self, handle: &str, ) -> Result<Option<CustomObjectType>>
pub fn update_type( &self, id: Uuid, input: UpdateCustomObjectType, ) -> Result<CustomObjectType>
pub fn list_types( &self, filter: CustomObjectTypeFilter, ) -> Result<Vec<CustomObjectType>>
pub fn delete_type(&self, id: Uuid) -> Result<()>
pub fn create_object(&self, input: CreateCustomObject) -> Result<CustomObject>
pub fn get_object(&self, id: Uuid) -> Result<Option<CustomObject>>
pub fn get_object_by_handle( &self, type_handle: &str, object_handle: &str, ) -> Result<Option<CustomObject>>
pub fn update_object( &self, id: Uuid, input: UpdateCustomObject, ) -> Result<CustomObject>
pub fn list_objects( &self, filter: CustomObjectFilter, ) -> Result<Vec<CustomObject>>
pub fn delete_object(&self, id: Uuid) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CustomObjects
impl !UnwindSafe for CustomObjects
impl Freeze for CustomObjects
impl Send for CustomObjects
impl Sync for CustomObjects
impl Unpin for CustomObjects
impl UnsafeUnpin for CustomObjects
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