pub struct AdapterResult {
pub output: Option<String>,
pub ok: bool,
pub error_code: Option<String>,
pub error_status: Option<u16>,
}Expand description
Result from an adapter operation.
Fields§
§output: Option<String>Successful output (canonical string, hash, proof, etc.)
ok: boolWhether the operation succeeded
error_code: Option<String>Error code if failed (e.g., “ASH_VALIDATION_ERROR”)
error_status: Option<u16>HTTP status if failed
Implementations§
Source§impl AdapterResult
impl AdapterResult
Trait Implementations§
Source§impl Clone for AdapterResult
impl Clone for AdapterResult
Source§fn clone(&self) -> AdapterResult
fn clone(&self) -> AdapterResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AdapterResult
impl RefUnwindSafe for AdapterResult
impl Send for AdapterResult
impl Sync for AdapterResult
impl Unpin for AdapterResult
impl UnsafeUnpin for AdapterResult
impl UnwindSafe for AdapterResult
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