pub struct SendMsgBuilder<'a, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'a, S: State> SendMsgBuilder<'a, S>
impl<'a, S: State> SendMsgBuilder<'a, S>
Sourcepub fn build(self) -> SendMsg<'a>where
S: IsComplete,
pub fn build(self) -> SendMsg<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn title(self, value: &'a str) -> SendMsgBuilder<'a, SetTitle<S>>where
S::Title: IsUnset,
pub fn title(self, value: &'a str) -> SendMsgBuilder<'a, SetTitle<S>>where
S::Title: IsUnset,
Required.
推送的标题
Sourcepub fn description(
self,
value: &'a str,
) -> SendMsgBuilder<'a, SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: &'a str,
) -> SendMsgBuilder<'a, SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<&'a str>,
) -> SendMsgBuilder<'a, SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<&'a str>,
) -> SendMsgBuilder<'a, SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn short(self, value: &'a str) -> SendMsgBuilder<'a, SetShort<S>>where
S::Short: IsUnset,
pub fn short(self, value: &'a str) -> SendMsgBuilder<'a, SetShort<S>>where
S::Short: IsUnset,
Sourcepub fn maybe_short(
self,
value: Option<&'a str>,
) -> SendMsgBuilder<'a, SetShort<S>>where
S::Short: IsUnset,
pub fn maybe_short(
self,
value: Option<&'a str>,
) -> SendMsgBuilder<'a, SetShort<S>>where
S::Short: IsUnset,
Auto Trait Implementations§
impl<'a, S> Freeze for SendMsgBuilder<'a, S>
impl<'a, S = Empty> !RefUnwindSafe for SendMsgBuilder<'a, S>
impl<'a, S> Send for SendMsgBuilder<'a, S>
impl<'a, S> Sync for SendMsgBuilder<'a, S>
impl<'a, S> Unpin for SendMsgBuilder<'a, S>
impl<'a, S> UnsafeUnpin for SendMsgBuilder<'a, S>
impl<'a, S = Empty> !UnwindSafe for SendMsgBuilder<'a, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more