pub struct MatrixContentScannerClient<'a> {
pub client: &'a MatrixClient,
}Expand description
API client for https://github.com/element-hq/matrix-content-scanner-python.
Fields§
§client: &'a MatrixClientImplementations§
Source§impl<'a> MatrixContentScannerClient<'a>
impl<'a> MatrixContentScannerClient<'a>
pub fn new(client: &'a MatrixClient) -> Self
pub async fn scan_content( &self, domain: &str, media_id: &str, ) -> Result<ContentScannerResult>
pub async fn scan_content_encrypted( &self, file: &EncryptedFile, ) -> Result<ContentScannerResult>
pub async fn download_content( &self, domain: &str, media_id: &str, ) -> Result<Vec<u8>>
pub async fn download_encrypted_content( &self, file: &EncryptedFile, ) -> Result<Vec<u8>>
Auto Trait Implementations§
impl<'a> Freeze for MatrixContentScannerClient<'a>
impl<'a> !RefUnwindSafe for MatrixContentScannerClient<'a>
impl<'a> Send for MatrixContentScannerClient<'a>
impl<'a> Sync for MatrixContentScannerClient<'a>
impl<'a> Unpin for MatrixContentScannerClient<'a>
impl<'a> UnsafeUnpin for MatrixContentScannerClient<'a>
impl<'a> !UnwindSafe for MatrixContentScannerClient<'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