authress 0.1.66

The Authress SDK for RUST - provides authorization as a service with fully compatible REST apis. Authentication / Authorization / User Identity Roles / Permissions / Policies
Documentation



#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Resource {
    /// A resource path which can be top level, fully qualified, or end with a *. Parent resources imply permissions to sub-resources.
    #[serde(rename = "resourceUri")]
    pub resource_uri: String,
}

impl Resource {
    pub fn new(resource_uri: String) -> Resource {
        Resource {
            resource_uri,
        }
    }
}