[][src]Struct monzo::feed_items::Basic

pub struct Basic<'a> { /* fields omitted */ }

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]

Set the image of the feed item.

Note

This doesn't currently seem to do anything

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,