[][src]Struct led_rs::Project

pub struct Project {
    pub project_file_path: Option<String>,
    pub project_dir: Option<String>,
    pub name: String,
    pub bg_color: String,
    pub json_version: String,
    pub default_pivot_x: f64,
    pub default_pivot_y: f64,
    pub levels: Vec<Level>,
}

Fields

project_file_path: Option<String>

Contains the full path to the project JSON, as provided to the macro (using slashes)

project_dir: Option<String>

Contains the directory of the project JSON (using slashes, no trailing slash)

name: String

Project name

bg_color: String

Project background color as hex (e.g. #FFFFFF)

json_version: Stringdefault_pivot_x: f64default_pivot_y: f64levels: Vec<Level>

Implementations

impl Project[src]

pub fn parse_json(json: String) -> Result<Self, Error>[src]

Trait Implementations

impl Debug for Project[src]

impl<'de> Deserialize<'de> for Project[src]

impl ToRenderGrid for Project[src]

Auto Trait Implementations

impl RefUnwindSafe for Project

impl Send for Project

impl Sync for Project

impl Unpin for Project

impl UnwindSafe for Project

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.