pub struct Inscription {
pub body: Option<Vec<u8>>,
pub content_encoding: Option<Vec<u8>>,
pub content_type: Option<Vec<u8>>,
pub delegate: Option<Vec<u8>>,
pub duplicate_field: bool,
pub incomplete_field: bool,
pub metadata: Option<Vec<u8>>,
pub metaprotocol: Option<Vec<u8>>,
pub parents: Vec<Vec<u8>>,
pub pointer: Option<Vec<u8>>,
pub rune: Option<Vec<u8>>,
pub unrecognized_even_field: bool,
}Fields§
§body: Option<Vec<u8>>§content_encoding: Option<Vec<u8>>§content_type: Option<Vec<u8>>§delegate: Option<Vec<u8>>§duplicate_field: bool§incomplete_field: bool§metadata: Option<Vec<u8>>§metaprotocol: Option<Vec<u8>>§parents: Vec<Vec<u8>>§pointer: Option<Vec<u8>>§rune: Option<Vec<u8>>§unrecognized_even_field: boolImplementations§
Source§impl Inscription
impl Inscription
pub fn new( chain: Chain, compress: bool, delegate: Option<InscriptionId>, metadata: Option<Vec<u8>>, metaprotocol: Option<String>, parents: Vec<InscriptionId>, path: Option<PathBuf>, pointer: Option<u64>, rune: Option<Rune>, ) -> Result<Self, Error>
pub fn pointer_value(pointer: u64) -> Vec<u8>
pub fn append_reveal_script_to_builder(&self, builder: Builder) -> Builder
pub fn append_batch_reveal_script_to_builder( inscriptions: &[Inscription], builder: Builder, ) -> Builder
pub fn append_batch_reveal_script( inscriptions: &[Inscription], builder: Builder, ) -> ScriptBuf
pub fn media(&self) -> Media
pub fn body(&self) -> Option<&[u8]>
pub fn into_body(self) -> Option<Vec<u8>>
pub fn content_length(&self) -> Option<usize>
pub fn content_type(&self) -> Option<&str>
pub fn content_encoding(&self) -> Option<HeaderValue>
pub fn delegate(&self) -> Option<InscriptionId>
pub fn metadata(&self) -> Option<Value>
pub fn metaprotocol(&self) -> Option<&str>
pub fn parents(&self) -> Vec<InscriptionId>
pub fn pointer(&self) -> Option<u64>
Trait Implementations§
Source§impl Clone for Inscription
impl Clone for Inscription
Source§fn clone(&self) -> Inscription
fn clone(&self) -> Inscription
Returns a copy 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 moreSource§impl Debug for Inscription
impl Debug for Inscription
Source§impl Default for Inscription
impl Default for Inscription
Source§fn default() -> Inscription
fn default() -> Inscription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Inscription
impl<'de> Deserialize<'de> for Inscription
Source§fn 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
Source§impl PartialEq for Inscription
impl PartialEq for Inscription
Source§impl Serialize for Inscription
impl Serialize for Inscription
Source§impl TryFrom<Inscription> for CompactInscription
impl TryFrom<Inscription> for CompactInscription
impl Eq for Inscription
impl StructuralPartialEq for Inscription
Auto Trait Implementations§
impl Freeze for Inscription
impl RefUnwindSafe for Inscription
impl Send for Inscription
impl Sync for Inscription
impl Unpin for Inscription
impl UnwindSafe for Inscription
Blanket Implementations§
Source§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
Source§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more