Skip to main content

BucketQueryService

Trait BucketQueryService 

Source
pub trait BucketQueryService: Send + Sync {
Show 39 methods // Required methods fn get_access_log<'life0, 'async_trait>( &'life0 self, id: AccessLogId, ) -> Pin<Box<dyn Future<Output = Result<Option<AccessLogDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_access_log_summary<'life0, 'async_trait>( &'life0 self, id: AccessLogId, ) -> Pin<Box<dyn Future<Output = Result<Option<AccessLogSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn access_log_exists<'life0, 'async_trait>( &'life0 self, id: AccessLogId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_bucket<'life0, 'async_trait>( &'life0 self, id: BucketId, ) -> Pin<Box<dyn Future<Output = Result<Option<BucketDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_bucket_summary<'life0, 'async_trait>( &'life0 self, id: BucketId, ) -> Pin<Box<dyn Future<Output = Result<Option<BucketSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn bucket_exists<'life0, 'async_trait>( &'life0 self, id: BucketId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_content_hash<'life0, 'async_trait>( &'life0 self, id: ContentHashId, ) -> Pin<Box<dyn Future<Output = Result<Option<ContentHashDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_content_hash_summary<'life0, 'async_trait>( &'life0 self, id: ContentHashId, ) -> Pin<Box<dyn Future<Output = Result<Option<ContentHashSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn content_hash_exists<'life0, 'async_trait>( &'life0 self, id: ContentHashId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_conversion_job<'life0, 'async_trait>( &'life0 self, id: ConversionJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ConversionJobDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_conversion_job_summary<'life0, 'async_trait>( &'life0 self, id: ConversionJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ConversionJobSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn conversion_job_exists<'life0, 'async_trait>( &'life0 self, id: ConversionJobId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_comment<'life0, 'async_trait>( &'life0 self, id: FileCommentId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileCommentDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_comment_summary<'life0, 'async_trait>( &'life0 self, id: FileCommentId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileCommentSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn file_comment_exists<'life0, 'async_trait>( &'life0 self, id: FileCommentId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_lock<'life0, 'async_trait>( &'life0 self, id: FileLockId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileLockDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_lock_summary<'life0, 'async_trait>( &'life0 self, id: FileLockId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileLockSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn file_lock_exists<'life0, 'async_trait>( &'life0 self, id: FileLockId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_share<'life0, 'async_trait>( &'life0 self, id: FileShareId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileShareDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_share_summary<'life0, 'async_trait>( &'life0 self, id: FileShareId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileShareSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn file_share_exists<'life0, 'async_trait>( &'life0 self, id: FileShareId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_version<'life0, 'async_trait>( &'life0 self, id: FileVersionId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileVersionDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_file_version_summary<'life0, 'async_trait>( &'life0 self, id: FileVersionId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileVersionSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn file_version_exists<'life0, 'async_trait>( &'life0 self, id: FileVersionId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_processing_job<'life0, 'async_trait>( &'life0 self, id: ProcessingJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ProcessingJobDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_processing_job_summary<'life0, 'async_trait>( &'life0 self, id: ProcessingJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ProcessingJobSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn processing_job_exists<'life0, 'async_trait>( &'life0 self, id: ProcessingJobId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_stored_file<'life0, 'async_trait>( &'life0 self, id: StoredFileId, ) -> Pin<Box<dyn Future<Output = Result<Option<StoredFileDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_stored_file_summary<'life0, 'async_trait>( &'life0 self, id: StoredFileId, ) -> Pin<Box<dyn Future<Output = Result<Option<StoredFileSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn stored_file_exists<'life0, 'async_trait>( &'life0 self, id: StoredFileId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_thumbnail<'life0, 'async_trait>( &'life0 self, id: ThumbnailId, ) -> Pin<Box<dyn Future<Output = Result<Option<ThumbnailDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_thumbnail_summary<'life0, 'async_trait>( &'life0 self, id: ThumbnailId, ) -> Pin<Box<dyn Future<Output = Result<Option<ThumbnailSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn thumbnail_exists<'life0, 'async_trait>( &'life0 self, id: ThumbnailId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_upload_session<'life0, 'async_trait>( &'life0 self, id: UploadSessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<UploadSessionDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_upload_session_summary<'life0, 'async_trait>( &'life0 self, id: UploadSessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<UploadSessionSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn upload_session_exists<'life0, 'async_trait>( &'life0 self, id: UploadSessionId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_quota<'life0, 'async_trait>( &'life0 self, id: UserQuotaId, ) -> Pin<Box<dyn Future<Output = Result<Option<UserQuotaDto>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_quota_summary<'life0, 'async_trait>( &'life0 self, id: UserQuotaId, ) -> Pin<Box<dyn Future<Output = Result<Option<UserQuotaSummary>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn user_quota_exists<'life0, 'async_trait>( &'life0 self, id: UserQuotaId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Public query service for Bucket module

This trait defines read-only operations that other modules can use. Implementations should NOT expose internal domain logic.

Required Methods§

Source

fn get_access_log<'life0, 'async_trait>( &'life0 self, id: AccessLogId, ) -> Pin<Box<dyn Future<Output = Result<Option<AccessLogDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get AccessLog by ID

Source

fn get_access_log_summary<'life0, 'async_trait>( &'life0 self, id: AccessLogId, ) -> Pin<Box<dyn Future<Output = Result<Option<AccessLogSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get AccessLog summary by ID

Source

fn access_log_exists<'life0, 'async_trait>( &'life0 self, id: AccessLogId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if AccessLog exists

Source

fn get_bucket<'life0, 'async_trait>( &'life0 self, id: BucketId, ) -> Pin<Box<dyn Future<Output = Result<Option<BucketDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get Bucket by ID

Source

fn get_bucket_summary<'life0, 'async_trait>( &'life0 self, id: BucketId, ) -> Pin<Box<dyn Future<Output = Result<Option<BucketSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get Bucket summary by ID

Source

fn bucket_exists<'life0, 'async_trait>( &'life0 self, id: BucketId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if Bucket exists

Source

fn get_content_hash<'life0, 'async_trait>( &'life0 self, id: ContentHashId, ) -> Pin<Box<dyn Future<Output = Result<Option<ContentHashDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get ContentHash by ID

Source

fn get_content_hash_summary<'life0, 'async_trait>( &'life0 self, id: ContentHashId, ) -> Pin<Box<dyn Future<Output = Result<Option<ContentHashSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get ContentHash summary by ID

Source

fn content_hash_exists<'life0, 'async_trait>( &'life0 self, id: ContentHashId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if ContentHash exists

Source

fn get_conversion_job<'life0, 'async_trait>( &'life0 self, id: ConversionJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ConversionJobDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get ConversionJob by ID

Source

fn get_conversion_job_summary<'life0, 'async_trait>( &'life0 self, id: ConversionJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ConversionJobSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get ConversionJob summary by ID

Source

fn conversion_job_exists<'life0, 'async_trait>( &'life0 self, id: ConversionJobId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if ConversionJob exists

Source

fn get_file_comment<'life0, 'async_trait>( &'life0 self, id: FileCommentId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileCommentDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileComment by ID

Source

fn get_file_comment_summary<'life0, 'async_trait>( &'life0 self, id: FileCommentId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileCommentSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileComment summary by ID

Source

fn file_comment_exists<'life0, 'async_trait>( &'life0 self, id: FileCommentId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if FileComment exists

Source

fn get_file_lock<'life0, 'async_trait>( &'life0 self, id: FileLockId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileLockDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileLock by ID

Source

fn get_file_lock_summary<'life0, 'async_trait>( &'life0 self, id: FileLockId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileLockSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileLock summary by ID

Source

fn file_lock_exists<'life0, 'async_trait>( &'life0 self, id: FileLockId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if FileLock exists

Source

fn get_file_share<'life0, 'async_trait>( &'life0 self, id: FileShareId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileShareDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileShare by ID

Source

fn get_file_share_summary<'life0, 'async_trait>( &'life0 self, id: FileShareId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileShareSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileShare summary by ID

Source

fn file_share_exists<'life0, 'async_trait>( &'life0 self, id: FileShareId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if FileShare exists

Source

fn get_file_version<'life0, 'async_trait>( &'life0 self, id: FileVersionId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileVersionDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileVersion by ID

Source

fn get_file_version_summary<'life0, 'async_trait>( &'life0 self, id: FileVersionId, ) -> Pin<Box<dyn Future<Output = Result<Option<FileVersionSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get FileVersion summary by ID

Source

fn file_version_exists<'life0, 'async_trait>( &'life0 self, id: FileVersionId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if FileVersion exists

Source

fn get_processing_job<'life0, 'async_trait>( &'life0 self, id: ProcessingJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ProcessingJobDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get ProcessingJob by ID

Source

fn get_processing_job_summary<'life0, 'async_trait>( &'life0 self, id: ProcessingJobId, ) -> Pin<Box<dyn Future<Output = Result<Option<ProcessingJobSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get ProcessingJob summary by ID

Source

fn processing_job_exists<'life0, 'async_trait>( &'life0 self, id: ProcessingJobId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if ProcessingJob exists

Source

fn get_stored_file<'life0, 'async_trait>( &'life0 self, id: StoredFileId, ) -> Pin<Box<dyn Future<Output = Result<Option<StoredFileDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get StoredFile by ID

Source

fn get_stored_file_summary<'life0, 'async_trait>( &'life0 self, id: StoredFileId, ) -> Pin<Box<dyn Future<Output = Result<Option<StoredFileSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get StoredFile summary by ID

Source

fn stored_file_exists<'life0, 'async_trait>( &'life0 self, id: StoredFileId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if StoredFile exists

Source

fn get_thumbnail<'life0, 'async_trait>( &'life0 self, id: ThumbnailId, ) -> Pin<Box<dyn Future<Output = Result<Option<ThumbnailDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get Thumbnail by ID

Source

fn get_thumbnail_summary<'life0, 'async_trait>( &'life0 self, id: ThumbnailId, ) -> Pin<Box<dyn Future<Output = Result<Option<ThumbnailSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get Thumbnail summary by ID

Source

fn thumbnail_exists<'life0, 'async_trait>( &'life0 self, id: ThumbnailId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if Thumbnail exists

Source

fn get_upload_session<'life0, 'async_trait>( &'life0 self, id: UploadSessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<UploadSessionDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get UploadSession by ID

Source

fn get_upload_session_summary<'life0, 'async_trait>( &'life0 self, id: UploadSessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<UploadSessionSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get UploadSession summary by ID

Source

fn upload_session_exists<'life0, 'async_trait>( &'life0 self, id: UploadSessionId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if UploadSession exists

Source

fn get_user_quota<'life0, 'async_trait>( &'life0 self, id: UserQuotaId, ) -> Pin<Box<dyn Future<Output = Result<Option<UserQuotaDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get UserQuota by ID

Source

fn get_user_quota_summary<'life0, 'async_trait>( &'life0 self, id: UserQuotaId, ) -> Pin<Box<dyn Future<Output = Result<Option<UserQuotaSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get UserQuota summary by ID

Source

fn user_quota_exists<'life0, 'async_trait>( &'life0 self, id: UserQuotaId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if UserQuota exists

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§