pub struct EntityAuthConfig {
pub list: String,
pub get: String,
pub create: String,
pub update: String,
pub delete: String,
pub list_links: String,
pub create_link: String,
pub delete_link: String,
}Expand description
Authorization configuration for an entity
Fields§
§list: StringPolicy for listing entities (GET /{entities})
get: StringPolicy for getting a single entity (GET /{entities}/{id})
create: StringPolicy for creating an entity (POST /{entities})
update: StringPolicy for updating an entity (PUT /{entities}/{id})
delete: StringPolicy for deleting an entity (DELETE /{entities}/{id})
list_links: StringPolicy for listing links (GET /{entities}/{id}/{link_route})
create_link: StringPolicy for creating links (POST /{entities}/{id}/{link_type}/{target_type}/{target_id})
delete_link: StringPolicy for deleting links (DELETE /{entities}/{id}/{link_type}/{target_type}/{target_id})
Trait Implementations§
Source§impl Clone for EntityAuthConfig
impl Clone for EntityAuthConfig
Source§fn clone(&self) -> EntityAuthConfig
fn clone(&self) -> EntityAuthConfig
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 moreSource§impl Debug for EntityAuthConfig
impl Debug for EntityAuthConfig
Source§impl Default for EntityAuthConfig
impl Default for EntityAuthConfig
Source§impl<'de> Deserialize<'de> for EntityAuthConfig
impl<'de> Deserialize<'de> for EntityAuthConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EntityAuthConfig
impl RefUnwindSafe for EntityAuthConfig
impl Send for EntityAuthConfig
impl Sync for EntityAuthConfig
impl Unpin for EntityAuthConfig
impl UnwindSafe for EntityAuthConfig
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