Struct kle_serial::Background
source · pub struct Background {
pub name: String,
pub style: String,
}Expand description
The background style of a KLE layout.
Fields§
§name: StringThe name of the background.
When generated by KLE, this is the same as the name shown in the dropdown menu, for example
"Carbon fibre 1".
style: StringThe CSS style of the background.
When generated by KLE, this sets the background-image CSS property to a relative url
where the associated image is located. For example the Carbon fibre 1 background will set
style to "background-image: url('/bg/carbonfibre/carbon_texture1879.png');".
Trait Implementations§
source§impl Clone for Background
impl Clone for Background
source§fn clone(&self) -> Background
fn clone(&self) -> Background
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 Background
impl Debug for Background
source§impl Default for Background
impl Default for Background
source§fn default() -> Background
fn default() -> Background
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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