pub enum FileUploadFlowStep {
Show 41 variants
LoadBucket,
CheckBucketActive,
CheckDeduplicationEnabled,
CalculateChecksum,
CheckDuplicateContent,
UseExistingContent,
DetectMimeType,
ValidateFileType,
ValidateFileSize,
LoadQuota,
CreateDefaultQuota,
CheckQuota,
CreateFileRecord,
CheckShouldStoreContent,
StoreContent,
CreateContentHash,
LinkContentHash,
UpdateFileProcessing,
ScanFile,
CheckScanResult,
UpdateScanComplete,
CheckCdnEnabled,
GenerateCdnUrl,
UpdateCdnInfo,
MarkFileActive,
UpdateQuota,
UpdateBucketStats,
EmitUploadedEvent,
Complete,
QuarantineFile,
EmitThreatEvent,
NotifyThreat,
CompleteQuarantine,
BucketNotFound,
BucketNotActive,
MimeTypeNotAllowed,
FileTooLarge,
QuotaExceeded,
QuotaExceededTerminal,
RollbackFileRecord,
StorageFailed,
}Expand description
Steps in FileUpload flow
Variants§
LoadBucket
load_bucket
CheckBucketActive
check_bucket_active
CheckDeduplicationEnabled
check_deduplication_enabled
CalculateChecksum
calculate_checksum
CheckDuplicateContent
check_duplicate_content
UseExistingContent
use_existing_content
DetectMimeType
detect_mime_type
ValidateFileType
validate_file_type
ValidateFileSize
validate_file_size
LoadQuota
load_quota
CreateDefaultQuota
create_default_quota
CheckQuota
check_quota
CreateFileRecord
create_file_record
CheckShouldStoreContent
check_should_store_content
StoreContent
store_content
CreateContentHash
create_content_hash
LinkContentHash
link_content_hash
UpdateFileProcessing
update_file_processing
ScanFile
scan_file
CheckScanResult
check_scan_result
UpdateScanComplete
update_scan_complete
CheckCdnEnabled
check_cdn_enabled
GenerateCdnUrl
generate_cdn_url
UpdateCdnInfo
update_cdn_info
MarkFileActive
mark_file_active
UpdateQuota
update_quota
UpdateBucketStats
update_bucket_stats
EmitUploadedEvent
emit_uploaded_event
Complete
complete
QuarantineFile
quarantine_file
EmitThreatEvent
emit_threat_event
NotifyThreat
notify_threat
CompleteQuarantine
complete_quarantine
BucketNotFound
bucket_not_found
BucketNotActive
bucket_not_active
MimeTypeNotAllowed
mime_type_not_allowed
FileTooLarge
file_too_large
QuotaExceeded
quota_exceeded
QuotaExceededTerminal
quota_exceeded_terminal
RollbackFileRecord
rollback_file_record
StorageFailed
storage_failed
Trait Implementations§
Source§impl Clone for FileUploadFlowStep
impl Clone for FileUploadFlowStep
impl Copy for FileUploadFlowStep
Source§impl Debug for FileUploadFlowStep
impl Debug for FileUploadFlowStep
Source§impl<'de> Deserialize<'de> for FileUploadFlowStep
impl<'de> Deserialize<'de> for FileUploadFlowStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FileUploadFlowStep
Source§impl Hash for FileUploadFlowStep
impl Hash for FileUploadFlowStep
Source§impl PartialEq for FileUploadFlowStep
impl PartialEq for FileUploadFlowStep
Source§impl Serialize for FileUploadFlowStep
impl Serialize for FileUploadFlowStep
impl StructuralPartialEq for FileUploadFlowStep
Auto Trait Implementations§
impl Freeze for FileUploadFlowStep
impl RefUnwindSafe for FileUploadFlowStep
impl Send for FileUploadFlowStep
impl Sync for FileUploadFlowStep
impl Unpin for FileUploadFlowStep
impl UnsafeUnpin for FileUploadFlowStep
impl UnwindSafe for FileUploadFlowStep
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.