chore: remove public access for commands

This commit is contained in:
Dmitriy Pleshevskiy 2020-08-01 23:23:35 +03:00
parent 9189c92c17
commit 2cd2d51ed1
8 changed files with 8 additions and 15 deletions

View file

@ -1,7 +1,6 @@
use super::StreamCommand;
use crate::result::{Error, ErrorKind, Result};
#[doc(hidden)]
#[derive(Debug, Default)]
pub struct FlushCommand<'a> {
pub collection: &'a str,

View file

@ -15,22 +15,22 @@ mod query;
#[cfg(feature = "search")]
mod suggest;
pub use quit::QuitCommand;
pub use start::StartCommand;
pub(crate) use quit::QuitCommand;
pub(crate) use start::StartCommand;
pub use ping::PingCommand;
pub(crate) use ping::PingCommand;
#[cfg(feature = "ingest")]
pub use flush::FlushCommand;
pub(crate) use flush::FlushCommand;
#[cfg(feature = "ingest")]
pub use push::PushCommand;
pub(crate) use pop::PopCommand;
#[cfg(feature = "ingest")]
pub use pop::PopCommand;
pub(crate) use push::PushCommand;
#[cfg(feature = "search")]
pub use query::QueryCommand;
pub(crate) use query::QueryCommand;
#[cfg(feature = "search")]
pub use suggest::SuggestCommand;
pub(crate) use suggest::SuggestCommand;
use crate::result::Result;

View file

@ -1,7 +1,6 @@
use super::StreamCommand;
use crate::result::*;
#[doc(hidden)]
#[derive(Debug, Default)]
pub struct PingCommand;

View file

@ -1,7 +1,6 @@
use super::StreamCommand;
use crate::result::{Error, ErrorKind, Result};
#[doc(hidden)]
#[derive(Debug, Default)]
pub struct PopCommand<'a> {
pub collection: &'a str,

View file

@ -1,7 +1,6 @@
use super::StreamCommand;
use crate::result::Result;
#[doc(hidden)]
#[derive(Debug, Default)]
pub struct PushCommand<'a> {
pub collection: &'a str,

View file

@ -1,7 +1,6 @@
use super::StreamCommand;
use crate::result::Result;
#[doc(hidden)]
#[derive(Debug, Default)]
pub struct QuitCommand;

View file

@ -13,7 +13,6 @@ const RE_START_RECEIVED_MESSAGE: &str = r"(?x)
buffer\((?P<buffer_size>\d+)\)
";
#[doc(hidden)]
#[derive(Debug)]
pub struct StartCommand {
pub mode: ChannelMode,

View file

@ -71,7 +71,6 @@ mod commands;
pub mod result;
pub use channel::*;
pub use commands::*;
#[macro_use]
extern crate lazy_static;