pub enum OpMode
Upload,
Download,
Indicates whether an operation is an upload or download.
Performs copy-assignment from
source.
Read moreFormats the value using the given formatter.
Read moreThe mode’s name in capitals: UPLOAD or DOWNLOAD.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.