Struct aws_sdk_iot::types::OtaUpdateFile
source · #[non_exhaustive]pub struct OtaUpdateFile {
pub file_name: Option<String>,
pub file_type: Option<i32>,
pub file_version: Option<String>,
pub file_location: Option<FileLocation>,
pub code_signing: Option<CodeSigning>,
pub attributes: Option<HashMap<String, String>>,
}
Expand description
Describes a file to be associated with an OTA update.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.file_name: Option<String>
The name of the file.
file_type: Option<i32>
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
file_version: Option<String>
The file version.
file_location: Option<FileLocation>
The location of the updated firmware.
code_signing: Option<CodeSigning>
The code signing method of the file.
attributes: Option<HashMap<String, String>>
A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
Implementations§
source§impl OtaUpdateFile
impl OtaUpdateFile
sourcepub fn file_type(&self) -> Option<i32>
pub fn file_type(&self) -> Option<i32>
An integer value you can include in the job document to allow your devices to identify the type of file received from the cloud.
sourcepub fn file_version(&self) -> Option<&str>
pub fn file_version(&self) -> Option<&str>
The file version.
sourcepub fn file_location(&self) -> Option<&FileLocation>
pub fn file_location(&self) -> Option<&FileLocation>
The location of the updated firmware.
sourcepub fn code_signing(&self) -> Option<&CodeSigning>
pub fn code_signing(&self) -> Option<&CodeSigning>
The code signing method of the file.
source§impl OtaUpdateFile
impl OtaUpdateFile
sourcepub fn builder() -> OtaUpdateFileBuilder
pub fn builder() -> OtaUpdateFileBuilder
Creates a new builder-style object to manufacture OtaUpdateFile
.
Trait Implementations§
source§impl Clone for OtaUpdateFile
impl Clone for OtaUpdateFile
source§fn clone(&self) -> OtaUpdateFile
fn clone(&self) -> OtaUpdateFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OtaUpdateFile
impl Debug for OtaUpdateFile
source§impl PartialEq for OtaUpdateFile
impl PartialEq for OtaUpdateFile
source§fn eq(&self, other: &OtaUpdateFile) -> bool
fn eq(&self, other: &OtaUpdateFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OtaUpdateFile
Auto Trait Implementations§
impl RefUnwindSafe for OtaUpdateFile
impl Send for OtaUpdateFile
impl Sync for OtaUpdateFile
impl Unpin for OtaUpdateFile
impl UnwindSafe for OtaUpdateFile
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