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
Creates the builder. group_id
is the only required paramteter which is associated
to the SendGrid group_id for Asm
subscriptions
let builder = AsmBuilder::new(1);
Adds a display group to the Asm
let builder = AsmBuilder::new(1)
.group_to_display(2)
.group_to_display(3);
Consumes the AsmBuilder
and returns the underlying Asm
let asm = AsmBuilder::new(1).build();
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static