Struct primitives::sentry::GetLeafResponse
source · pub struct GetLeafResponse {
pub merkle_proof: String,
}
Expand description
Get leaf response with the Merkle proof for the requested spender/earner.
Examples
use primitives::sentry::GetLeafResponse;
use serde_json::{from_value, json};
fn main() {
let json = json!({
"merkleProof": "8ea7760ca2dbbe00673372afbf8b05048717ce8a305f1f853afac8c244182e0c",
});
assert!(from_value::<GetLeafResponse>(json).is_ok());
}
Fields
merkle_proof: String
Trait Implementations
sourceimpl Debug for GetLeafResponse
impl Debug for GetLeafResponse
sourceimpl<'de> Deserialize<'de> for GetLeafResponse
impl<'de> Deserialize<'de> for GetLeafResponse
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for GetLeafResponse
impl Serialize for GetLeafResponse
Auto Trait Implementations
impl RefUnwindSafe for GetLeafResponse
impl Send for GetLeafResponse
impl Sync for GetLeafResponse
impl Unpin for GetLeafResponse
impl UnwindSafe for GetLeafResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more