pub struct PurviewClient { /* private fields */ }Expand description
Calls the Microsoft Graph dataSecurityAndGovernance/processContent
endpoint. See the module docs for how this differs in scope from
Python’s PurviewClient.
Implementations§
Source§impl PurviewClient
impl PurviewClient
pub fn new( token_provider: impl TokenProvider + 'static, settings: &PurviewSettings, ) -> Self
Sourcepub async fn process_content(
&self,
request: &ProcessContentRequest,
) -> Result<ProcessContentResponse>
pub async fn process_content( &self, request: &ProcessContentRequest, ) -> Result<ProcessContentResponse>
POST {graph_base_uri}/users/{userId}/dataSecurityAndGovernance/processContent.
On a non-2xx status: 402 is swallowed into an empty
ProcessContentResponse when ignore_payment_required was set at
construction time (see the field docs); every other non-2xx status
(401/403/402-when-not-ignored/429/anything else) becomes an
Error::ServiceStatus carrying the real status code, so callers
(namely crate::middleware) can distinguish “payment required” via
Error::status the same way Python’s except PurviewPaymentRequiredError clause does.
Auto Trait Implementations§
impl !RefUnwindSafe for PurviewClient
impl !UnwindSafe for PurviewClient
impl Freeze for PurviewClient
impl Send for PurviewClient
impl Sync for PurviewClient
impl Unpin for PurviewClient
impl UnsafeUnpin for PurviewClient
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