Struct mainnet_lib::METADATUM_2
source · pub struct METADATUM_2 {
__private_field: (),
}
Expand description
metadatum label 2 constant
Fields§
§__private_field: ()
Methods from Deref<Target = TransactionMetadatum>§
pub fn to_bytes(&self) -> Vec<u8, Global> ⓘ
pub fn to_hex(&self) -> String
pub fn kind(&self) -> TransactionMetadatumKind
pub fn as_map(&self) -> Result<MetadataMap, JsError>
pub fn as_list(&self) -> Result<MetadataList, JsError>
pub fn as_int(&self) -> Result<Int, JsError>
pub fn as_bytes(&self) -> Result<Vec<u8, Global>, JsError>
pub fn as_text(&self) -> Result<String, JsError>
Trait Implementations§
source§impl Deref for METADATUM_2
impl Deref for METADATUM_2
impl LazyStatic for METADATUM_2
Auto Trait Implementations§
impl RefUnwindSafe for METADATUM_2
impl Send for METADATUM_2
impl Sync for METADATUM_2
impl Unpin for METADATUM_2
impl UnwindSafe for METADATUM_2
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request