pub struct AttachmentService { /* private fields */ }Implementations§
Source§impl AttachmentService
impl AttachmentService
pub const fn new(objects: ObjectStoreService, policy: AttachmentPolicy) -> Self
pub async fn store_small( &self, namespace: &str, owner_id: &str, upload: &AttachmentUpload, attributes: BTreeMap<String, String>, ) -> Result<AttachmentMetadata, AttachmentError>
Sourcepub async fn issue_direct(
uploads: &ObjectUploadService,
request: IssueObjectUpload,
) -> Result<IssuedObjectUpload, ObjectUploadError>
pub async fn issue_direct( uploads: &ObjectUploadService, request: IssueObjectUpload, ) -> Result<IssuedObjectUpload, ObjectUploadError>
Delegates capability issuance to the existing object-storage service.
Sourcepub async fn verify_direct(
uploads: &ObjectUploadService,
pending: &PendingObjectUpload,
) -> Result<VerifiedObjectUpload, ObjectUploadError>
pub async fn verify_direct( uploads: &ObjectUploadService, pending: &PendingObjectUpload, ) -> Result<VerifiedObjectUpload, ObjectUploadError>
Delegates provider metadata verification to the existing service.
Trait Implementations§
Source§impl Clone for AttachmentService
impl Clone for AttachmentService
Source§fn clone(&self) -> AttachmentService
fn clone(&self) -> AttachmentService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AttachmentService
impl !UnwindSafe for AttachmentService
impl Freeze for AttachmentService
impl Send for AttachmentService
impl Sync for AttachmentService
impl Unpin for AttachmentService
impl UnsafeUnpin for AttachmentService
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