pub struct Basic<'a, C>where
C: Inner,{ /* private fields */ }
Expand description
A request to create a new basic feed item.
Currently a ‘basic’ feed item is the only kind of feed item which is supported
Use the builder methods to set optional fields
Implementations§
Source§impl<'a, C> Request<'a, C>where
C: Inner,
impl<'a, C> Request<'a, C>where
C: Inner,
Sourcepub const fn url(self, url: &'a str) -> Self
pub const fn url(self, url: &'a str) -> Self
Set the url of the feed item.
This is the url the user will be redirected to after tapping on the feed item
Sourcepub const fn background_color(self, background_color: &'a str) -> Self
pub const fn background_color(self, background_color: &'a str) -> Self
Set the background colour of the feed item
Sourcepub const fn body_color(self, body_color: &'a str) -> Self
pub const fn body_color(self, body_color: &'a str) -> Self
Set the body colour of the feed item
Sourcepub const fn title_color(self, title_color: &'a str) -> Self
pub const fn title_color(self, title_color: &'a str) -> Self
Set the title colour of the feed item
Trait Implementations§
Auto Trait Implementations§
impl<'a, C> Freeze for Request<'a, C>
impl<'a, C> RefUnwindSafe for Request<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for Request<'a, C>
impl<'a, C> Sync for Request<'a, C>
impl<'a, C> Unpin for Request<'a, C>
impl<'a, C> UnwindSafe for Request<'a, C>where
C: RefUnwindSafe,
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