pub struct UploadUsingProgrammerReq {
pub instance: Option<Instance>,
pub fqbn: String,
pub sketch_path: String,
pub port: String,
pub verbose: bool,
pub verify: bool,
pub import_file: String,
pub import_dir: String,
pub programmer: String,
}
Fields§
§instance: Option<Instance>
Arduino Core Service instance from the Init
response.
fqbn: String
Fully qualified board name of the target board (e.g., arduino:avr:uno
).
If this field is not defined, the FQBN of the board attached to the sketch
via the BoardAttach
method is used.
sketch_path: String
Path where the sketch to be uploaded is stored. Unless the import_file
field is defined, the compiled binary is assumed to be at the location and
filename under this path where it is saved by the Compile
method.
port: String
The port of the board.
verbose: bool
Whether to turn on verbose output during the upload.
verify: bool
After upload, verify that the contents of the memory on the board match the uploaded binary.
import_file: String
When import_file
is specified, it overrides the import_dir
and sketch_path
params.
import_dir: String
Custom path to a directory containing compiled files. When import_dir
is
not specified, the standard build directory under sketch_path
is used.
programmer: String
The programmer to use for upload.
Trait Implementations§
Source§impl Clone for UploadUsingProgrammerReq
impl Clone for UploadUsingProgrammerReq
Source§fn clone(&self) -> UploadUsingProgrammerReq
fn clone(&self) -> UploadUsingProgrammerReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UploadUsingProgrammerReq
impl Debug for UploadUsingProgrammerReq
Source§impl Default for UploadUsingProgrammerReq
impl Default for UploadUsingProgrammerReq
Source§fn default() -> UploadUsingProgrammerReq
fn default() -> UploadUsingProgrammerReq
Source§impl Message for UploadUsingProgrammerReq
impl Message for UploadUsingProgrammerReq
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for UploadUsingProgrammerReq
impl PartialEq for UploadUsingProgrammerReq
impl StructuralPartialEq for UploadUsingProgrammerReq
Auto Trait Implementations§
impl Freeze for UploadUsingProgrammerReq
impl RefUnwindSafe for UploadUsingProgrammerReq
impl Send for UploadUsingProgrammerReq
impl Sync for UploadUsingProgrammerReq
impl Unpin for UploadUsingProgrammerReq
impl UnwindSafe for UploadUsingProgrammerReq
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request