pub enum ChainhookSpecification {
Bitcoin(BitcoinChainhookSpecification),
Stacks(StacksChainhookSpecification),
}Variants§
Bitcoin(BitcoinChainhookSpecification)
Stacks(StacksChainhookSpecification)
Implementations§
source§impl ChainhookSpecification
impl ChainhookSpecification
pub fn name(&self) -> &str
pub fn either_stx_or_btc_key(uuid: &str) -> String
pub fn stacks_key(uuid: &str) -> String
pub fn bitcoin_key(uuid: &str) -> String
pub fn into_serialized_json(&self) -> JsonValue
pub fn key(&self) -> String
pub fn deserialize_specification( spec: &str ) -> Result<ChainhookSpecification, String>
pub fn uuid(&self) -> &str
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
source§impl Clone for ChainhookSpecification
impl Clone for ChainhookSpecification
source§fn clone(&self) -> ChainhookSpecification
fn clone(&self) -> ChainhookSpecification
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 ChainhookSpecification
impl Debug for ChainhookSpecification
source§impl<'de> Deserialize<'de> for ChainhookSpecification
impl<'de> Deserialize<'de> for ChainhookSpecification
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<ChainhookSpecification> for ChainhookSpecification
impl PartialEq<ChainhookSpecification> for ChainhookSpecification
source§fn eq(&self, other: &ChainhookSpecification) -> bool
fn eq(&self, other: &ChainhookSpecification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ChainhookSpecification
impl Serialize for ChainhookSpecification
impl StructuralPartialEq for ChainhookSpecification
Auto Trait Implementations§
impl RefUnwindSafe for ChainhookSpecification
impl Send for ChainhookSpecification
impl Sync for ChainhookSpecification
impl Unpin for ChainhookSpecification
impl UnwindSafe for ChainhookSpecification
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
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>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.