/// Compose message. Returns Err, if body was not provided.
Compose message. Returns Err, if body was not provided.
Compose message . Returns Err if body was not provided .
pub fn compose(self) -> Result<Message, BuilderError> {
        if let Some(body) = self.body {
            Ok(Message::new(
                body,
                self.delay,
                Offset::new(self.offset).ok_or(BuilderError::OffsetOutOfBounds)?,
                self.max_tries,
                self.timeout,
            ))
        } else {
            Err(BuilderError::BodyNotProvided)
        }
    }
pub fn compose ( self ) -> Result < Message , BuilderError > { if let Some ( body ) = self . body { Ok ( Message :: new ( body , self . delay , Offset :: new ( self . offset ) . ok_or ( BuilderError :: OffsetOutOfBounds ) ? , self . max_tries , self . timeout , ) ) } else { Err ( BuilderError :: BodyNotProvided ) } }
Compose message.
Compose message .
self