[−][src]Struct messagebird_async::sms::list::Builder
Methods
impl Builder[src]
impl Builderpub fn with_origin(self, originator: Originator) -> Self | [src] |
Filters for the origin of the message
May be either a phone number, contact (unimplemented as of now) or a string.
Messages which are sent via the API and do not have an origin defined will have "inbox"
be the default originator.
pub fn with_payload_type(self, payload_type: PayloadType) -> Self | [src] |
Filters for the payload type, either being SMS or Binary
pub fn with_direction(self, direction: Direction) -> Self | [src] |
Filters for the direction
pub fn with_status(self, status: Status) -> Self | [src] |
Filters for the status of the messages being listed
pub fn with_destination<T>(self, msisdn: T) -> Self where | [src] |
Counterpart to with_origin
pub fn skip(self, skip: u32) -> Self | [src] |
The number of messages to skip before listing. Allows it to be used as paginating.
pub fn count(self, upper_limit: u32) -> Self | [src] |
Limits the number of returned messages
pub fn contains_term(self, term: &str) -> Self | [src] |
Validate the message contained a fixed term
pub fn between(self, start: DateTime, stop: DateTime) -> Self | [src] |
Filters for messages that were sent in a certain range
pub fn from(self, start: DateTime) -> Self | [src] |
Defines the timspan since when the message was sent TODO rename, too amibiguous
pub fn until(self, stop: DateTime) -> Self | [src] |
Until what timestamp the messages we are interested in are filtered
pub fn build(self) -> ListParameters | [src] |
Finalizes and returns the ListParameters
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)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> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T