/// Builds a RestApiSawtoothClient
///
/// Returns an error if the url is not set
Builds a RestApiSawtoothClient
Returns an error if the url is not set
Builds a RestApiSawtoothClient Returns an error if the url is not set
pub fn build(self) -> Result<RestApiSawtoothClient, SawtoothClientError> {
        Ok(RestApiSawtoothClient {
            url: self.url.ok_or_else(|| {
                SawtoothClientError::new("Error building RestApiSawtoothClient, missing url")
            })?,
            auth: self.auth.map(|auth| format!("{}:{}", auth.0, auth.1)),
        })
    }
pub fn build ( self ) -> Result < RestApiSawtoothClient , SawtoothClientError > { Ok ( RestApiSawtoothClient { url : self . url . ok_or_else ( | | { SawtoothClientError :: new ( " " ) } ) ? , auth : self . auth . map ( | auth | format ! ( " " auth 0 auth 1 ) ) , } ) }
Builds a RestApiSawtoothClient
Returns an error if the url is not set
Builds a RestApiSawtoothClient Returns an error if the url is not set
self