pub struct WebStyle {
pub background_color: Option<String>,
pub color: Option<String>,
pub class_names: Option<String>,
}Fields§
§background_color: Option<String>§color: Option<String>§class_names: Option<String>Implementations§
Source§impl WebStyle
impl WebStyle
pub fn new() -> Self
pub fn with_background_color(color: impl Into<String>) -> Self
pub fn with_font_color(color: impl Into<String>) -> Self
pub fn with_class_names(class_names: impl Into<String>) -> Self
pub fn background_color(self, color: impl Into<String>) -> Self
pub fn font_color(self, color: impl Into<String>) -> Self
pub fn class_names(self, class_names: impl Into<String>) -> Self
pub fn to_json_value(&self) -> Value
pub fn bind_base(&self, entity: &mut BaseEntityData)
pub fn bind_entity<E>(&self, entity: &mut E)where
E: BaseEntity,
pub fn bind_record(&self, record: &mut Record)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WebStyle
impl<'de> Deserialize<'de> for WebStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WebStyle
impl StructuralPartialEq for WebStyle
Auto Trait Implementations§
impl Freeze for WebStyle
impl RefUnwindSafe for WebStyle
impl Send for WebStyle
impl Sync for WebStyle
impl Unpin for WebStyle
impl UnsafeUnpin for WebStyle
impl UnwindSafe for WebStyle
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