1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use crate::client_settings::ClientSettings;

impl ClientSettings {

    /// Completes the builder pattern into a final structure.
    ///
    /// ## Arguments:
    ///
    /// This method accepts no arguments.

    pub fn finalize(&self) -> ClientSettings {
        ClientSettings {
            key: self.key.clone(),
            max_retries: self.max_retries,
            max_backoff: self.max_backoff,
            rate_limit: self.rate_limit.clone(),
        } // ClientSettings
    } // fn

} // impl