Type Alias SzResult

Source
pub type SzResult<T> = Result<T, SzError>;
Expand description

Result type alias for Senzing SDK operations

This is the standard Result type used throughout the Senzing Rust SDK. All Senzing operations return SzResult<T> instead of Result<T, SzError>.

§Examples

use sz_rust_sdk::error::SzResult;

fn senzing_operation() -> SzResult<String> {
    // Your Senzing operation here
    Ok("Success".to_string())
}

Aliased Type§

pub enum SzResult<T> {
    Ok(T),
    Err(SzError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(SzError)

Contains the error value