aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-02-13 14:45:41 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-02-13 14:45:41 +0100
commitd99083c47ddd31288ed1b688002388f6e68c5e04 (patch)
tree08e90a0da26512fe19470c8bd7ff0d81d3dffd4c /src/lib.rs
parentda461fc867b7c9211116fe7d0c23afbb96f6aaa4 (diff)
downloadrust-zotapi-d99083c47ddd31288ed1b688002388f6e68c5e04.tar.gz
rust-zotapi-d99083c47ddd31288ed1b688002388f6e68c5e04.tar.bz2
rust-zotapi-d99083c47ddd31288ed1b688002388f6e68c5e04.zip
Refactor how ABConfigs are fetched.
Introduce a `z()` menber function that creates the request object that we use for further configuring the requset. This eliminates the need to two fetch functions, and is meant to provide a consistent way of doing these requests.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7a17269..1be4c92 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-pub mod abconfig;
+mod abconfig;
mod abook;
mod channel_stream;
mod client;
@@ -24,6 +24,7 @@ mod item;
mod network_stream;
mod xchan;
+pub use abconfig::ABConfig;
pub use abook::abook;
pub use channel_stream::channel_stream;
pub use client::*;