pub struct DynamicResource {
pub resource_type: String,
pub data: Value,
pub handler: Arc<ResourceHandler>,
}Expand description
Dynamic resource that uses registered handlers for operations
Fields§
§resource_type: String§data: Value§handler: Arc<ResourceHandler>Implementations§
Source§impl DynamicResource
impl DynamicResource
pub fn new( resource_type: String, data: Value, handler: Arc<ResourceHandler>, ) -> Self
pub fn get_attribute_dynamic(&self, attribute: &str) -> Option<Value>
pub fn set_attribute_dynamic( &mut self, attribute: &str, value: Value, ) -> Result<(), ScimError>
pub fn call_custom_method(&self, method_name: &str) -> Result<Value, ScimError>
pub fn to_implementation_schema( &self, mapper_index: usize, ) -> Result<Value, ScimError>
pub fn from_implementation_schema( &mut self, impl_data: &Value, mapper_index: usize, ) -> Result<(), ScimError>
Trait Implementations§
Source§impl Clone for DynamicResource
impl Clone for DynamicResource
Source§fn clone(&self) -> DynamicResource
fn clone(&self) -> DynamicResource
Returns a duplicate 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 Freeze for DynamicResource
impl !RefUnwindSafe for DynamicResource
impl Send for DynamicResource
impl Sync for DynamicResource
impl Unpin for DynamicResource
impl !UnwindSafe for DynamicResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TenantValidator for T
impl<T> TenantValidator for T
Source§fn validate_tenant_context(
&self,
expected_tenant_id: &str,
context: &RequestContext,
) -> Result<(), String>
fn validate_tenant_context( &self, expected_tenant_id: &str, context: &RequestContext, ) -> Result<(), String>
Validate that the context has the expected tenant.
Source§fn validate_single_tenant_context(
&self,
context: &RequestContext,
) -> Result<(), String>
fn validate_single_tenant_context( &self, context: &RequestContext, ) -> Result<(), String>
Validate that the context is for single-tenant operation.
Source§fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
Extract tenant context or return error for multi-tenant operations.