pub struct CustomObjects { /* private fields */ }Implementations§
Source§impl CustomObjects
impl CustomObjects
Source§impl CustomObjects
impl CustomObjects
pub fn into_reference( val: CustomObjects, env: Env, ) -> Result<Reference<CustomObjects>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<CustomObjects>>
Source§impl CustomObjects
impl CustomObjects
pub async fn create_type( &self, input: CreateCustomObjectTypeInput, ) -> Result<CustomObjectTypeOutput>
pub async fn get_type( &self, id: String, ) -> Result<Option<CustomObjectTypeOutput>>
pub async fn get_type_by_handle( &self, handle: String, ) -> Result<Option<CustomObjectTypeOutput>>
pub async fn update_type( &self, id: String, input: UpdateCustomObjectTypeInput, ) -> Result<CustomObjectTypeOutput>
pub async fn list_types( &self, filter: Option<CustomObjectTypeFilterInput>, ) -> Result<Vec<CustomObjectTypeOutput>>
pub async fn delete_type(&self, id: String) -> Result<()>
pub async fn create_object( &self, input: CreateCustomObjectInput, ) -> Result<CustomObjectOutput>
pub async fn get_object(&self, id: String) -> Result<Option<CustomObjectOutput>>
pub async fn get_object_by_handle( &self, type_handle: String, object_handle: String, ) -> Result<Option<CustomObjectOutput>>
pub async fn update_object( &self, id: String, input: UpdateCustomObjectInput, ) -> Result<CustomObjectOutput>
pub async fn list_objects( &self, filter: Option<CustomObjectFilterInput>, ) -> Result<Vec<CustomObjectOutput>>
pub async fn delete_object(&self, id: String) -> Result<()>
Trait Implementations§
Source§impl FromNapiMutRef for CustomObjects
impl FromNapiMutRef for CustomObjects
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for CustomObjects
impl FromNapiRef for CustomObjects
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &CustomObjects
impl FromNapiValue for &CustomObjects
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl FromNapiValue for &mut CustomObjects
impl FromNapiValue for &mut CustomObjects
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for CustomObjects
impl ToNapiValue for CustomObjects
Source§unsafe fn to_napi_value(env: napi_env, val: CustomObjects) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: CustomObjects) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &CustomObjects
impl TypeName for &CustomObjects
Source§impl TypeName for &mut CustomObjects
impl TypeName for &mut CustomObjects
Source§impl TypeName for CustomObjects
impl TypeName for CustomObjects
Source§impl ValidateNapiValue for &CustomObjects
impl ValidateNapiValue for &CustomObjects
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut CustomObjects
impl ValidateNapiValue for &mut CustomObjects
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for CustomObjects
impl !RefUnwindSafe for CustomObjects
impl Send for CustomObjects
impl Sync for CustomObjects
impl Unpin for CustomObjects
impl UnsafeUnpin for CustomObjects
impl !UnwindSafe 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