pub struct Attrs { /* private fields */ }
Implementations§
Source§impl Attrs
impl Attrs
pub fn omit(&self, fields_to_omit: Vec<&'static str>) -> Self
pub fn to_hashmap(&self) -> HashMap<&'static str, String>
pub fn to_hashmap_excluding( &self, exclude: Vec<&'static str>, ) -> HashMap<&'static str, String>
pub fn with(key: &'static str, value: String) -> Self
pub fn set(&self, key: &'static str, value: String) -> Self
pub fn set_if(&self, key: &'static str, value: String, condition: bool) -> Self
pub fn get(&self, key: &'static str) -> Option<&String>
Trait Implementations§
Source§impl From<ActionLinkProps> for Attrs
impl From<ActionLinkProps> for Attrs
Source§fn from(html_props: ActionLinkProps) -> Self
fn from(html_props: ActionLinkProps) -> Self
Converts to this type from the input type.
Source§impl From<ButtonProps> for Attrs
impl From<ButtonProps> for Attrs
Source§fn from(html_props: ButtonProps) -> Self
fn from(html_props: ButtonProps) -> Self
Converts to this type from the input type.
Source§impl From<DeleteActionLinkProps> for Attrs
impl From<DeleteActionLinkProps> for Attrs
Source§fn from(html_props: DeleteActionLinkProps) -> Self
fn from(html_props: DeleteActionLinkProps) -> Self
Converts to this type from the input type.
Source§impl From<GridCellProps> for Attrs
impl From<GridCellProps> for Attrs
Source§fn from(html_props: GridCellProps) -> Self
fn from(html_props: GridCellProps) -> Self
Converts to this type from the input type.
Source§impl From<GridLayoutProps> for Attrs
impl From<GridLayoutProps> for Attrs
Source§fn from(html_props: GridLayoutProps) -> Self
fn from(html_props: GridLayoutProps) -> Self
Converts to this type from the input type.
Source§impl From<HtmlElementProps> for Attrs
impl From<HtmlElementProps> for Attrs
Source§fn from(html_props: HtmlElementProps) -> Self
fn from(html_props: HtmlElementProps) -> Self
Converts to this type from the input type.
Source§impl From<LabelProps> for Attrs
impl From<LabelProps> for Attrs
Source§fn from(html_props: LabelProps) -> Self
fn from(html_props: LabelProps) -> Self
Converts to this type from the input type.
Source§impl From<MenuItemProps> for Attrs
impl From<MenuItemProps> for Attrs
Source§fn from(html_props: MenuItemProps) -> Self
fn from(html_props: MenuItemProps) -> Self
Converts to this type from the input type.
Source§impl From<PageHeaderToolbarProps> for Attrs
impl From<PageHeaderToolbarProps> for Attrs
Source§fn from(html_props: PageHeaderToolbarProps) -> Self
fn from(html_props: PageHeaderToolbarProps) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryButtonProps> for Attrs
impl From<PrimaryButtonProps> for Attrs
Source§fn from(html_props: PrimaryButtonProps) -> Self
fn from(html_props: PrimaryButtonProps) -> Self
Converts to this type from the input type.
Source§impl From<SecondaryButtonProps> for Attrs
impl From<SecondaryButtonProps> for Attrs
Source§fn from(html_props: SecondaryButtonProps) -> Self
fn from(html_props: SecondaryButtonProps) -> Self
Converts to this type from the input type.
Source§impl From<SecondaryHeaderProps> for Attrs
impl From<SecondaryHeaderProps> for Attrs
Source§fn from(html_props: SecondaryHeaderProps) -> Self
fn from(html_props: SecondaryHeaderProps) -> Self
Converts to this type from the input type.
Source§impl From<SelectOptionProps> for Attrs
impl From<SelectOptionProps> for Attrs
Source§fn from(html_props: SelectOptionProps) -> Self
fn from(html_props: SelectOptionProps) -> Self
Converts to this type from the input type.
Source§impl From<SelectProps> for Attrs
impl From<SelectProps> for Attrs
Source§fn from(html_props: SelectProps) -> Self
fn from(html_props: SelectProps) -> Self
Converts to this type from the input type.
Source§impl From<TextInputProps> for Attrs
impl From<TextInputProps> for Attrs
Source§fn from(html_props: TextInputProps) -> Self
fn from(html_props: TextInputProps) -> Self
Converts to this type from the input type.
Source§impl From<ToggleProps> for Attrs
impl From<ToggleProps> for Attrs
Source§fn from(html_props: ToggleProps) -> Self
fn from(html_props: ToggleProps) -> Self
Converts to this type from the input type.
Source§impl From<TransitionProps> for Attrs
impl From<TransitionProps> for Attrs
Source§fn from(html_props: TransitionProps) -> Self
fn from(html_props: TransitionProps) -> Self
Converts to this type from the input type.
Source§impl From<YcControlProps> for Attrs
impl From<YcControlProps> for Attrs
Source§fn from(html_props: YcControlProps) -> Self
fn from(html_props: YcControlProps) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Attrs
impl RefUnwindSafe for Attrs
impl Send for Attrs
impl Sync for Attrs
impl Unpin for Attrs
impl UnwindSafe for Attrs
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