pub struct Library {Show 26 fields
pub name: String,
pub author: String,
pub maintainer: String,
pub sentence: String,
pub paragraph: String,
pub website: String,
pub category: String,
pub architectures: Vec<String>,
pub types: Vec<String>,
pub install_dir: String,
pub source_dir: String,
pub utility_dir: String,
pub container_platform: String,
pub real_name: String,
pub dot_a_linkage: bool,
pub precompiled: bool,
pub ld_flags: String,
pub is_legacy: bool,
pub version: String,
pub license: String,
pub properties: HashMap<String, String>,
pub location: i32,
pub layout: i32,
pub examples: Vec<String>,
pub provides_includes: Vec<String>,
pub compatible_with: HashMap<String, bool>,
}
Fields§
§name: String
The library’s directory name.
Value of the author
field in library.properties.
maintainer: String
Value of the maintainer
field in library.properties.
sentence: String
Value of the sentence
field in library.properties.
paragraph: String
Value of the paragraph
field in library.properties.
website: String
Value of the url
field in library.properties.
category: String
Value of the category
field in library.properties.
architectures: Vec<String>
Value of the architectures
field in library.properties.
types: Vec<String>
The type categories of the library. Possible values: Arduino
,
Partner
, Recommended
, Contributed
, Retired
.
install_dir: String
The path of the library directory.
source_dir: String
The location of the library’s source files.
utility_dir: String
The location of the library’s utility
directory.
container_platform: String
If location
is platform_builtin
or referenced_platform_builtin
, the
identifying string for the platform containing the library
(e.g., arduino:avr@1.8.2
).
real_name: String
Value of the name
field in library.properties.
dot_a_linkage: bool
Value of the dot_a_linkage
field in library.properties.
precompiled: bool
Value of the precompiled
field in library.properties.
ld_flags: String
Value of the ldflags
field in library.properties.
is_legacy: bool
A library.properties file is not present in the library’s root directory.
version: String
Value of the version
field in library.properties.
license: String
Value of the license
field in library.properties.
properties: HashMap<String, String>
The data from the library’s library.properties file, including unused fields.
location: i32
The location type of the library installation.
layout: i32
The library format type.
examples: Vec<String>
The example sketches provided by the library
provides_includes: Vec<String>
Value of the includes
field in library.properties or, if missing, the list of
include files available on the library source root directory.
compatible_with: HashMap<String, bool>
Map of FQBNs that specifies if library is compatible with this library
Implementations§
Source§impl Library
impl Library
Sourcepub fn location(&self) -> LibraryLocation
pub fn location(&self) -> LibraryLocation
Returns the enum value of location
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_location(&mut self, value: LibraryLocation)
pub fn set_location(&mut self, value: LibraryLocation)
Sets location
to the provided enum value.
Sourcepub fn layout(&self) -> LibraryLayout
pub fn layout(&self) -> LibraryLayout
Returns the enum value of layout
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_layout(&mut self, value: LibraryLayout)
pub fn set_layout(&mut self, value: LibraryLayout)
Sets layout
to the provided enum value.
Trait Implementations§
Source§impl Message for Library
impl Message for Library
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
.impl StructuralPartialEq for Library
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
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