Struct sep2_common::packages::software_download::File
source · pub struct File {
pub activate_time: Option<TimeType>,
pub file_uri: String,
pub lfdi: Option<HexBinary160>,
pub mf_hw_ver: Option<String32>,
pub mf_id: PENType,
pub mf_model: String32,
pub mf_ser_num: Option<String32>,
pub mf_ver: String16,
pub size: Uint32,
pub _type: HexBinary16,
pub href: Option<String>,
}
software_download
only.Fields§
§activate_time: Option<TimeType>
This element MUST be set to the date/time at which this file is activated. If the activation time is less than or equal to current time, the LD MUST immediately place the file into the activated state (in the case of a firmware file, the file is now the running image). If the activation time is greater than the current time, the LD MUST wait until the specified activation time is reached, then MUST place the file into the activated state. Omission of this element means that the LD MUST NOT take any action to activate the file until a subsequent GET to this File resource provides an activateTime.
file_uri: String
This element MUST be set to the URI location of the file binary artifact. This is the BLOB (binary large object) that is actually loaded by the LD
lfdi: Option<HexBinary160>
This element MUST be set to the LFDI of the device for which this file in targeted.
mf_hw_ver: Option<String32>
This element MUST be set to the hardware version for which this file is targeted.
mf_id: PENType
This element MUST be set to the manufacturer’s Private Enterprise Number (assigned by IANA).
mf_model: String32
This element MUST be set to the manufacturer model number for which this file is targeted. The syntax and semantics are left to the manufacturer.
mf_ser_num: Option<String32>
This element MUST be set to the manufacturer serial number for which this file is targeted. The syntax and semantics are left to the manufacturer.
mf_ver: String16
This element MUST be set to the software version information for this file. The syntax and semantics are left to the manufacturer.
size: Uint32
This element MUST be set to the total size (in bytes) of the file referenced by fileURI.
_type: HexBinary16
A value indicating the type of the file. MUST be one of the following values: 00 = Software Image 01 = Security Credential 02 = Configuration 03 = Log 04–7FFF = reserved 8000-FFFF = Manufacturer defined
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Ord for File
impl Ord for File
source§impl PartialEq<File> for File
impl PartialEq<File> for File
source§impl PartialOrd<File> for File
impl PartialOrd<File> for File
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more