BoostagramBuilder

Struct BoostagramBuilder 

Source
pub struct BoostagramBuilder { /* private fields */ }

Implementations§

Source§

impl BoostagramBuilder

Source

pub fn build(self) -> Result<Boostagram, Error>

Source

pub fn new() -> BoostagramBuilder

Source

pub fn podcast(self, podcast: String) -> Self

Source

pub fn podcast_opt(self, podcast: Option<String>) -> Self

Source

pub fn feed_id(self, feed_id: usize) -> Self

Source

pub fn feed_id_opt(self, feed_id: Option<usize>) -> Self

Source

pub fn url(self, url: String) -> Self

Source

pub fn url_opt(self, url: Option<String>) -> Self

Source

pub fn guid(self, guid: String) -> Self

Source

pub fn guid_opt(self, guid: Option<String>) -> Self

Source

pub fn episode(self, episode: String) -> Self

Source

pub fn episode_opt(self, episode: Option<String>) -> Self

Source

pub fn item_id(self, item_id: usize) -> Self

Source

pub fn item_id_opt(self, item_id: Option<usize>) -> Self

Source

pub fn message(self, message: String) -> Self

Source

pub fn message_opt(self, message: Option<String>) -> Self

Source

pub fn name(self, name: String) -> Self

Source

pub fn name_opt(self, name: Option<String>) -> Self

Source

pub fn reply_address(self, reply_address: String) -> Self

Source

pub fn reply_address_opt(self, reply_address: Option<String>) -> Self

Source

pub fn reply_custom_key(self, reply_custom_key: usize) -> Self

Source

pub fn reply_custom_key_opt(self, reply_custom_key: Option<usize>) -> Self

Source

pub fn reply_custom_value(self, reply_custom_value: String) -> Self

Source

pub fn reply_custom_value_opt(self, reply_custom_value: Option<String>) -> Self

Source

pub fn sender_name(self, sender_name: String) -> Self

Source

pub fn sender_name_opt(self, sender_name: Option<String>) -> Self

Source

pub fn sender_id(self, sender_id: String) -> Self

Source

pub fn sender_id_opt(self, sender_id: Option<String>) -> Self

Source

pub fn signature(self, signature: String) -> Self

Source

pub fn signature_opt(self, signature: Option<String>) -> Self

Source

pub fn speed(self, speed: String) -> Self

Source

pub fn speed_opt(self, speed: Option<String>) -> Self

Source

pub fn uuid(self, uuid: String) -> Self

Source

pub fn uuid_opt(self, uuid: Option<String>) -> Self

Source

pub fn value_msat_total(self, value_msat_total: u64) -> Self

Source

pub fn value_msat_total_opt(self, value_msat_total: Option<u64>) -> Self

Source

pub fn episode_guid(self, episode_guid: String) -> Self

Source

pub fn episode_guid_opt(self, episode_guid: Option<String>) -> Self

Source

pub fn time(self, time: String) -> Self

Source

pub fn time_opt(self, time: Option<String>) -> Self

Source

pub fn ts(self, ts: usize) -> Self

Source

pub fn ts_opt(self, ts: Option<usize>) -> Self

Source

pub fn action(self, action: Action) -> Self

Source

pub fn action_opt(self, action: Option<Action>) -> Self

Source

pub fn app_name(self, app_name: String) -> Self

Source

pub fn app_name_opt(self, app_name: Option<String>) -> Self

Source

pub fn app_version(self, app_version: String) -> Self

Source

pub fn app_version_opt(self, app_version: Option<String>) -> Self

Trait Implementations§

Source§

impl Default for BoostagramBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.