pub enum FileStatus {
PendingUpload,
Uploading,
Purged,
Uploaded,
Missing,
Partial,
InvalidChecksum,
InvalidArchive,
ArchiveWithinArchive,
UnsupportedCompression,
PasswordProtected,
}Expand description
File upload status as defined in the Veracode filelist.xsd schema
This enum represents all possible states a file can be in during and after upload. Reference: https://analysiscenter.veracode.com/resource/2.0/filelist.xsd
Variants§
PendingUpload
File is pending upload to the platform
Uploading
File is currently being uploaded
Purged
File has been purged from the platform
Uploaded
File was successfully uploaded and is ready for scanning
Missing
File is missing from the build
Partial
File upload was only partially completed
InvalidChecksum
File MD5 checksum validation failed
InvalidArchive
File is not a valid archive format
ArchiveWithinArchive
Archive contains nested archives (not allowed)
UnsupportedCompression
Archive uses unsupported compression algorithm
PasswordProtected
Archive is password protected and cannot be processed
Implementations§
Source§impl FileStatus
impl FileStatus
Sourcepub fn is_uploaded(&self) -> bool
pub fn is_uploaded(&self) -> bool
Check if this status indicates a successful upload
Sourcepub fn is_in_progress(&self) -> bool
pub fn is_in_progress(&self) -> bool
Check if this status indicates upload is still in progress
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description of the status
Trait Implementations§
Source§impl Clone for FileStatus
impl Clone for FileStatus
Source§fn clone(&self) -> FileStatus
fn clone(&self) -> FileStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileStatus
impl Debug for FileStatus
Source§impl<'de> Deserialize<'de> for FileStatus
impl<'de> Deserialize<'de> for FileStatus
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>,
Source§impl Display for FileStatus
impl Display for FileStatus
Source§impl PartialEq for FileStatus
impl PartialEq for FileStatus
Source§impl Serialize for FileStatus
impl Serialize for FileStatus
impl Eq for FileStatus
impl StructuralPartialEq for FileStatus
Auto Trait Implementations§
impl Freeze for FileStatus
impl RefUnwindSafe for FileStatus
impl Send for FileStatus
impl Sync for FileStatus
impl Unpin for FileStatus
impl UnwindSafe for FileStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.