SzProduct

Trait SzProduct 

Source
pub trait SzProduct: Send + Sync {
    // Required methods
    fn get_license(&self) -> SzResult<JsonString>;
    fn get_version(&self) -> SzResult<JsonString>;
}
Expand description

Product version and license information.

The SzProduct trait provides methods for retrieving product version and licensing information.

§Obtaining an Instance

use sz_rust_sdk::prelude::*;

let product = env.get_product()?;

Required Methods§

Source

fn get_license(&self) -> SzResult<JsonString>

Gets the product license details.

Returns information about the Senzing license including type, expiration, and feature entitlements.

§Returns

JSON string with license information.

§Examples
use sz_rust_sdk::prelude::*;

let product = env.get_product()?;
let license = product.get_license()?;
println!("License: {}", license);
Source

fn get_version(&self) -> SzResult<JsonString>

Gets the product version information.

Returns version details for the Senzing engine and its components.

§Returns

JSON string with version information including build date and component versions.

§Examples
use sz_rust_sdk::prelude::*;

let product = env.get_product()?;
let version = product.get_version()?;
println!("Version: {}", version);

Implementors§