pub struct JsVerificationResult {
pub valid: bool,
pub verification_time_ms: i64,
pub error: Option<String>,
pub policy_id: String,
pub policy_limit: BigInt,
}Expand description
Result of proof verification
Fields§
§valid: boolWhether the proof is valid
verification_time_ms: i64Time taken to verify in milliseconds
error: Option<String>Error message if verification failed
policy_id: StringPolicy ID that was verified
policy_limit: BigIntPolicy limit that was verified against
Trait Implementations§
Source§impl FromNapiValue for JsVerificationResult
impl FromNapiValue for JsVerificationResult
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for JsVerificationResult
impl ToNapiValue for JsVerificationResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsVerificationResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsVerificationResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for JsVerificationResult
impl TypeName for JsVerificationResult
Source§impl ValidateNapiValue for JsVerificationResult
impl ValidateNapiValue for JsVerificationResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for JsVerificationResult
impl RefUnwindSafe for JsVerificationResult
impl Send for JsVerificationResult
impl Sync for JsVerificationResult
impl Unpin for JsVerificationResult
impl UnsafeUnpin for JsVerificationResult
impl UnwindSafe for JsVerificationResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more