[][src]Struct arduino_cli_client::commands::Library

pub struct Library {
    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.

author: String

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

impl Library[src]

pub fn location(&self) -> LibraryLocation[src]

Returns the enum value of location, or the default if the field is set to an invalid enum value.

pub fn set_location(&mut self, value: LibraryLocation)[src]

Sets location to the provided enum value.

pub fn layout(&self) -> LibraryLayout[src]

Returns the enum value of layout, or the default if the field is set to an invalid enum value.

pub fn set_layout(&mut self, value: LibraryLayout)[src]

Sets layout to the provided enum value.

Trait Implementations

impl Clone for Library[src]

impl Debug for Library[src]

impl Default for Library[src]

impl Message for Library[src]

impl PartialEq<Library> for Library[src]

impl StructuralPartialEq for Library[src]

Auto Trait Implementations

impl RefUnwindSafe for Library

impl Send for Library

impl Sync for Library

impl Unpin for Library

impl UnwindSafe for Library

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]