pub struct OrbitalComponentViewProps<IV>where
IV: IntoView + 'static,{Show 13 fields
pub component_name: &'static str,
pub component_description: Option<&'static str>,
pub component_description_md: Option<&'static str>,
pub component_props: Option<&'static [ComponentPropDoc]>,
pub component_best_practices: Option<&'static str>,
pub component_best_practices_md: Option<&'static str>,
pub default: IV,
pub default_code: MaybeProp<&'static str>,
pub default_example_title: MaybeProp<&'static str>,
pub default_description: MaybeProp<&'static str>,
pub default_example_id: MaybeProp<&'static str>,
pub example_anchors: Option<&'static [(&'static str, &'static str)]>,
pub children: Option<Children>,
}Expand description
Props for the OrbitalComponentView component.
§Required Props
- component_name: [
&'static str] - default: [
IV]
§Optional Props
- component_description: [
&'static str] - component_description_md: [
&'static str] - component_props: [
&'static [ComponentPropDoc]] - component_best_practices: [
&'static str] - component_best_practices_md: [
&'static str] - default_code: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - default_example_title: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - default_description: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - default_example_id: [
impl Into<MaybeProp<&'static str>>](MaybeProp<&’static str>) - example_anchors: [
&'static [(&'static str, &'static str)]] - children:
Children
Fields§
§component_name: &'static str§component_description: Option<&'static str>§component_description_md: Option<&'static str>§component_props: Option<&'static [ComponentPropDoc]>§component_best_practices: Option<&'static str>§component_best_practices_md: Option<&'static str>§default: IV§default_code: MaybeProp<&'static str>§default_example_title: MaybeProp<&'static str>§default_description: MaybeProp<&'static str>§default_example_id: MaybeProp<&'static str>§example_anchors: Option<&'static [(&'static str, &'static str)]>§children: Option<Children>Implementations§
Source§impl<IV> OrbitalComponentViewProps<IV>where
IV: IntoView + 'static,
impl<IV> OrbitalComponentViewProps<IV>where
IV: IntoView + 'static,
Sourcepub fn builder() -> OrbitalComponentViewPropsBuilder<IV, ((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> OrbitalComponentViewPropsBuilder<IV, ((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building OrbitalComponentViewProps.
On the builder, call .component_name(...), .component_description(...)(optional), .component_description_md(...)(optional), .component_props(...)(optional), .component_best_practices(...)(optional), .component_best_practices_md(...)(optional), .default(...), .default_code(...)(optional), .default_example_title(...)(optional), .default_description(...)(optional), .default_example_id(...)(optional), .example_anchors(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of OrbitalComponentViewProps.
Trait Implementations§
Auto Trait Implementations§
impl<IV> !RefUnwindSafe for OrbitalComponentViewProps<IV>
impl<IV> !Sync for OrbitalComponentViewProps<IV>
impl<IV> !UnwindSafe for OrbitalComponentViewProps<IV>
impl<IV> Freeze for OrbitalComponentViewProps<IV>where
IV: Freeze,
impl<IV> Send for OrbitalComponentViewProps<IV>
impl<IV> Unpin for OrbitalComponentViewProps<IV>where
IV: Unpin,
impl<IV> UnsafeUnpin for OrbitalComponentViewProps<IV>where
IV: UnsafeUnpin,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.