1- use std:: io;
2- use std:: time:: SystemTime ;
1+ use std:: { io, time:: SystemTime } ;
32
4- use crate :: common:: configs:: { CHAR_LIST , RANDOMNESS_LENGTH } ;
5- use crate :: common:: errors:: RowIDError ;
6- use crate :: functions:: decode:: { decode as _decode, DecodeOptions } ;
7- use crate :: functions:: encode:: { encode as _encode, EncodeOptions } ;
8- use crate :: functions:: generate:: {
9- generate as _generate, GenerateOptions , GenerateResult ,
10- } ;
11- use crate :: functions:: get_randomness:: {
12- get_randomness as _get_randomness, GetRandomnessOptions ,
13- } ;
14- use crate :: functions:: rowid:: { rowid as _rowid, RowIDOptions } ;
15- use crate :: functions:: verify:: {
16- verify as _verify, VerifyOptions , VerifyResult ,
3+ use crate :: internal:: {
4+ common:: {
5+ configs:: { CHAR_LIST , RANDOMNESS_LENGTH } ,
6+ errors:: RowIDError ,
7+ } ,
8+ functions:: {
9+ decode:: { decode as _decode, DecodeOptions } ,
10+ encode:: { encode as _encode, EncodeOptions } ,
11+ generate:: { generate as _generate, GenerateOptions , GenerateResult } ,
12+ get_randomness:: {
13+ get_randomness as _get_randomness, GetRandomnessOptions ,
14+ } ,
15+ rowid:: { rowid as _rowid, RowIDOptions } ,
16+ verify:: { verify as _verify, VerifyOptions , VerifyResult } ,
17+ } ,
1718} ;
1819
1920/// This struct contains the state of the `RowIDWithConfig` struct.
@@ -31,7 +32,7 @@ pub struct RowIDWithConfigState<'a> {
3132/// ## Example
3233///
3334/// ```no_run
34- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
35+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
3536///
3637/// let rwc: RowIDWithConfigResult =
3738/// RowIDWithConfig::new().done().unwrap();
@@ -49,7 +50,7 @@ impl<'a> RowIDWithConfigResult<'a> {
4950 /// ## Example
5051 ///
5152 /// ```no_run
52- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
53+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
5354 ///
5455 /// let rwc: RowIDWithConfigResult =
5556 /// RowIDWithConfig::new().done().unwrap();
@@ -69,7 +70,7 @@ impl<'a> RowIDWithConfigResult<'a> {
6970 ///
7071 /// ```no_run
7172 /// use std::time::SystemTime;
72- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
73+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
7374 ///
7475 /// let rwc: RowIDWithConfigResult =
7576 /// RowIDWithConfig::new().done().unwrap();
@@ -88,7 +89,7 @@ impl<'a> RowIDWithConfigResult<'a> {
8889 ///
8990 /// ```no_run
9091 /// use std::time::SystemTime;
91- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
92+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
9293 ///
9394 /// let rwc: RowIDWithConfigResult =
9495 /// RowIDWithConfig::new().done().unwrap();
@@ -107,7 +108,10 @@ impl<'a> RowIDWithConfigResult<'a> {
107108 ///
108109 /// ```no_run
109110 /// use std::time::SystemTime;
110- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult, GenerateResult};
111+ /// use rowid::{
112+ /// base::GenerateResult,
113+ /// with_config::{RowIDWithConfig, RowIDWithConfigResult}
114+ /// };
111115 ///
112116 /// let rwc: RowIDWithConfigResult =
113117 /// RowIDWithConfig::new().done().unwrap();
@@ -134,7 +138,10 @@ impl<'a> RowIDWithConfigResult<'a> {
134138 /// ## Example
135139 ///
136140 /// ```no_run
137- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult, VerifyResult};
141+ /// use rowid::{
142+ /// base::VerifyResult,
143+ /// with_config::{RowIDWithConfig, RowIDWithConfigResult}
144+ /// };
138145 ///
139146 /// let rwc: RowIDWithConfigResult =
140147 /// RowIDWithConfig::new().done().unwrap();
@@ -152,7 +159,7 @@ impl<'a> RowIDWithConfigResult<'a> {
152159 /// ## Example
153160 ///
154161 /// ```no_run
155- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
162+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
156163 ///
157164 /// let rwc: RowIDWithConfigResult =
158165 /// RowIDWithConfig::new().done().unwrap();
@@ -177,7 +184,7 @@ impl<'a> RowIDWithConfigResult<'a> {
177184/// ## Example
178185///
179186/// ```no_run
180- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
187+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
181188///
182189/// let rwc: RowIDWithConfigResult =
183190/// RowIDWithConfig::new().done().unwrap();
@@ -193,7 +200,7 @@ impl<'a> RowIDWithConfig<'a> {
193200 /// ## Example
194201 ///
195202 /// ```no_run
196- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
203+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
197204 ///
198205 /// let rwc: RowIDWithConfigResult =
199206 /// RowIDWithConfig::new().done().unwrap();
@@ -215,7 +222,7 @@ impl<'a> RowIDWithConfig<'a> {
215222 /// ## Example
216223 ///
217224 /// ```no_run
218- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
225+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
219226 ///
220227 /// let rwc: RowIDWithConfigResult = RowIDWithConfig::new()
221228 /// .char_list("0123456789ABCDEFGHJKMNPQRSTVWXYZ")
@@ -241,7 +248,7 @@ impl<'a> RowIDWithConfig<'a> {
241248 /// ## Example
242249 ///
243250 /// ```no_run
244- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
251+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
245252 ///
246253 /// let rwc: RowIDWithConfigResult = RowIDWithConfig::new()
247254 /// .randomness_length(22)
@@ -264,7 +271,7 @@ impl<'a> RowIDWithConfig<'a> {
264271 /// ## Example
265272 ///
266273 /// ```no_run
267- /// use rowid::{RowIDWithConfig, RowIDWithConfigResult};
274+ /// use rowid::with_config:: {RowIDWithConfig, RowIDWithConfigResult};
268275 ///
269276 /// let rwc: RowIDWithConfigResult =
270277 /// RowIDWithConfig::new().done().unwrap();
0 commit comments