Struct freya_components::NetworkImageProps 
source · pub struct NetworkImageProps<'a> {
    pub theme: Option<NetworkImageThemeWith>,
    pub url: Url,
    pub fallback: Option<Element<'a>>,
    pub loading: Option<Element<'a>>,
    pub alt: Option<String>,
}Expand description
NetworkImage component properties.
Fields§
§theme: Option<NetworkImageThemeWith>Theme override.
url: UrlURL of the image
fallback: Option<Element<'a>>Fallback element
loading: Option<Element<'a>>Loading element
alt: Option<String>Information about the image.
Implementations§
source§impl<'a> NetworkImageProps<'a>
 
impl<'a> NetworkImageProps<'a>
sourcepub fn builder() -> NetworkImagePropsBuilder<'a, ((), (), (), (), ())>
 
pub fn builder() -> NetworkImagePropsBuilder<'a, ((), (), (), (), ())>
Create a builder for building NetworkImageProps.
On the builder, call .theme(...)(optional), .url(...), .fallback(...)(optional), .loading(...)(optional), .alt(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of NetworkImageProps.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NetworkImageProps<'a>
impl<'a> !Send for NetworkImageProps<'a>
impl<'a> !Sync for NetworkImageProps<'a>
impl<'a> Unpin for NetworkImageProps<'a>
impl<'a> !UnwindSafe for NetworkImageProps<'a>
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