pub struct Builder(/* private fields */);
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_origin(self, originator: Originator) -> Self
pub fn with_origin(self, originator: Originator) -> Self
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.
Sourcepub fn with_payload_type(self, payload_type: PayloadType) -> Self
pub fn with_payload_type(self, payload_type: PayloadType) -> Self
Filters for the payload type, either being SMS
or Binary
Sourcepub fn with_direction(self, direction: Direction) -> Self
pub fn with_direction(self, direction: Direction) -> Self
Filters for the direction
Sourcepub fn with_status(self, status: Status) -> Self
pub fn with_status(self, status: Status) -> Self
Filters for the status of the messages being listed
Sourcepub fn with_destination<T>(self, msisdn: T) -> Selfwhere
T: Into<QueryRecipient>,
pub fn with_destination<T>(self, msisdn: T) -> Selfwhere
T: Into<QueryRecipient>,
Counterpart to with_origin
Sourcepub fn skip(self, skip: u32) -> Self
pub fn skip(self, skip: u32) -> Self
The number of messages to skip before listing. Allows it to be used as paginating.
Sourcepub fn contains_term(self, term: &str) -> Self
pub fn contains_term(self, term: &str) -> Self
Validate the message contained a fixed term
Sourcepub fn between(self, start: DateTime, stop: DateTime) -> Self
pub fn between(self, start: DateTime, stop: DateTime) -> Self
Filters for messages that were sent in a certain range
Sourcepub fn from(self, start: DateTime) -> Self
pub fn from(self, start: DateTime) -> Self
Defines the timspan since when the message was sent TODO rename, too amibiguous
Sourcepub fn until(self, stop: DateTime) -> Self
pub fn until(self, stop: DateTime) -> Self
Until what timestamp the messages we are interested in are filtered
Sourcepub fn build(self) -> ListParameters
pub fn build(self) -> ListParameters
Finalizes and returns the ListParameters