[][src]Struct sendgrid_rs::AsmBuilder

pub struct AsmBuilder { /* fields omitted */ }

A builder pattern for constructing Asm Make sure you call build() to consume the builder and retrieve the underyling Asm

Methods

impl AsmBuilder
[src]

pub fn new(group_id: i32) -> Self
[src]

Creates the builder. group_id is the only required paramteter which is associated to the SendGrid group_id for Asm subscriptions

Examples


let builder = AsmBuilder::new(1);

pub fn group_to_display(self, group: i32) -> Self
[src]

Adds a display group to the Asm

Examples


let builder = AsmBuilder::new(1)
    .group_to_display(2)
    .group_to_display(3);

pub fn build(self) -> Asm
[src]

Consumes the AsmBuilder and returns the underlying Asm

Examples


let asm = AsmBuilder::new(1).build();

Auto Trait Implementations

impl Send for AsmBuilder

impl Sync for AsmBuilder

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]