pub struct PDP<'a> { /* private fields */ }Implementations§
Source§impl<'a> PDP<'a>
impl<'a> PDP<'a>
pub fn new(ishare: &'a ISHARE, eori: String, url: String) -> PDP<'a>
pub async fn put_policy_set( &self, access_token: &str, policy_issuer: &str, access_subject: &str, service_provider: &str, resource_type: String, actions: Vec<String>, identifiers: Option<Vec<String>>, ) -> Result<PolicySetInsertResponse, IshareError>
pub async fn remove_policy_set( &self, access_token: &str, policy_set_id: &str, ) -> Result<(), IshareError>
pub async fn put_policy_filter( &self, access_token: &str, policy_issuer: &str, access_subject: &str, service_provider: &str, resource_type: String, actions: Vec<String>, identifiers: Vec<String>, ) -> Result<DelegationEvidence, IshareError>
pub async fn connect_admin( &self, admin_username: &str, admin_password: &str, pdp_app_id: &str, pdp_app_secret: &str, ) -> Result<LoginResponse, IshareError>
pub async fn connect(&self) -> Result<LoginResponse, IshareError>
Auto Trait Implementations§
impl<'a> Freeze for PDP<'a>
impl<'a> RefUnwindSafe for PDP<'a>
impl<'a> Send for PDP<'a>
impl<'a> Sync for PDP<'a>
impl<'a> Unpin for PDP<'a>
impl<'a> UnsafeUnpin for PDP<'a>
impl<'a> UnwindSafe for PDP<'a>
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