pub struct LinkPropsBuilder<'__a, H, __href = href>where
H: AttributeValueViewParts + Send,{ /* private fields */ }Expand description
Typestate builder for LinkProps, created by LinkProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, H, __href> LinkPropsBuilder<'__a, H, __href>where
H: AttributeValueViewParts + Send,
impl<'__a, H, __href> LinkPropsBuilder<'__a, H, __href>where
H: AttributeValueViewParts + Send,
Sourcepub fn href(self, href: H) -> LinkPropsBuilder<'__a, H, Set>
pub fn href(self, href: H) -> LinkPropsBuilder<'__a, H, Set>
The URL to open. Use href! for pages in your app.
Sourcepub fn prefetch(self, prefetch: impl Into<Option<PrefetchMode>>) -> Self
pub fn prefetch(self, prefetch: impl Into<Option<PrefetchMode>>) -> Self
When to load the page before the user follows the link. Uses
prefetch_mode if omitted.
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Additional HTML attributes to put on the link.
Auto Trait Implementations§
impl<'__a, H, __href = href> !RefUnwindSafe for LinkPropsBuilder<'__a, H, __href>
impl<'__a, H, __href = href> !Sync for LinkPropsBuilder<'__a, H, __href>
impl<'__a, H, __href = href> !UnwindSafe for LinkPropsBuilder<'__a, H, __href>
impl<'__a, H, __href> Freeze for LinkPropsBuilder<'__a, H, __href>
impl<'__a, H, __href> Send for LinkPropsBuilder<'__a, H, __href>
impl<'__a, H, __href> Unpin for LinkPropsBuilder<'__a, H, __href>
impl<'__a, H, __href> UnsafeUnpin for LinkPropsBuilder<'__a, H, __href>
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