[−][src]Struct monzo::feed_items::Basic
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
impl<'a> Request<'a>
[src]
pub fn url(self, url: &'a str) -> Self
[src]
Set the url of the feed item.
This is the url the user will be redirected to after tapping on the feed item
pub fn title(self, title: &'a str) -> Self
[src]
Set the title of the feed item.
pub fn image_url(self, image_url: &'a str) -> Self
[src]
pub fn background_color(self, background_color: &'a str) -> Self
[src]
Set the background colour of the feed item
pub fn body_color(self, body_color: &'a str) -> Self
[src]
Set the body colour of the feed item
pub fn title_color(self, title_color: &'a str) -> Self
[src]
Set the title colour of the feed item
pub fn body(self, body: &'a str) -> Self
[src]
Set the body text of the feed item
pub async fn send(self) -> Result<()>
[src]
Consume the request and return a future which will resolve when the feed item is posted
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> !UnwindSafe for Request<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,