message: Have update_stream call UPDATE instead of just passing ot create. Small rearrangement of similar methods
diff: @@ -290,7 +290,16 @@ impl Manager {
  &self,
  stream_config: StreamConfig,
  ) -> io::Result<StreamInfo> {
  - self.create_stream(stream_config)
  + let cfg: StreamConfig = stream_config.into();
  + if cfg.name.is_empty() {
  + return Err(Error::new(
  + ErrorKind::InvalidData,
  + "the stream name must not be empty",
  + ));
  + }
  + let subject: String = format!("$JS.API.STREAM.UPDATE.{}", cfg.name);
  + let req = serde_json::ser::to_vec(&cfg)?;
  + self.request(&subject, &req)
  }
  /// Query all stream names.
  @@ -315,6 +324,32 @@ impl Manager {
  }
  }
  + /// List consumers for a stream.
  + pub fn list_consumers<S>(
  + &self,
  + stream: S,
  + ) -> io::Result<PagedIterator<'_, ConsumerInfo>>
  + where
  + S: AsRef<str>,
  + {
  + let stream: &str = stream.as_ref();
  + if stream.is_empty() {
  + return Err(Error::new(
  + ErrorKind::InvalidData,
  + "the stream name must not be empty",
  + ));
  + }
  + let subject: String = format!("$JS.API.CONSUMER.LIST.{}", stream);
  +
  + Ok(PagedIterator {
  + subject,
  + manager: self,
  + offset: 0,
  + items: Default::default(),
  + done: false,
  + })
  + }
  +
  /// Query stream information.
  pub fn stream_info<S: AsRef<str>>(
  &self,
  @@ -485,32 +520,6 @@ impl Manager {
  self.request(&subject, b"")
  }
  - /// List consumers for a stream.
  - pub fn list_consumers<S>(
  - &self,
  - stream: S,
  - ) -> io::Result<PagedIterator<'_, ConsumerInfo>>
  - where
  - S: AsRef<str>,
  - {
  - let stream: &str = stream.as_ref();
  - if stream.is_empty() {
  - return Err(Error::new(
  - ErrorKind::InvalidData,
  - "the stream name must not be empty",
  - ));
  - }
  - let subject: String = format!("$JS.API.CONSUMER.LIST.{}", stream);
  -
  - Ok(PagedIterator {
  - subject,
  - manager: self,
  - offset: 0,
  - items: Default::default(),
  - done: false,
  - })
  - }
  -
  /// Query account information.
  pub fn account_info(&self) -> io::Result<AccountInfo> {
  self.request("$JS.API.INFO", b"")
  