Struct chainhook_sdk::chainhooks::types::ChainhookConfig
source · pub struct ChainhookConfig {
pub stacks_chainhooks: Vec<StacksChainhookSpecification>,
pub bitcoin_chainhooks: Vec<BitcoinChainhookSpecification>,
}Fields§
§stacks_chainhooks: Vec<StacksChainhookSpecification>§bitcoin_chainhooks: Vec<BitcoinChainhookSpecification>Implementations§
source§impl ChainhookConfig
impl ChainhookConfig
pub fn new() -> ChainhookConfig
pub fn get_spec_with_uuid(&self, uuid: &str) -> Option<ChainhookSpecification>
pub fn register_full_specification( &mut self, networks: (&BitcoinNetwork, &StacksNetwork), hook: ChainhookFullSpecification ) -> Result<ChainhookSpecification, String>
pub fn enable_specification( &mut self, predicate_spec: &mut ChainhookSpecification )
pub fn register_specification( &mut self, spec: ChainhookSpecification ) -> Result<(), String>
pub fn deregister_stacks_hook( &mut self, hook_uuid: String ) -> Option<StacksChainhookSpecification>
pub fn deregister_bitcoin_hook( &mut self, hook_uuid: String ) -> Option<BitcoinChainhookSpecification>
Trait Implementations§
source§impl Clone for ChainhookConfig
impl Clone for ChainhookConfig
source§fn clone(&self) -> ChainhookConfig
fn clone(&self) -> ChainhookConfig
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 ChainhookConfig
impl Debug for ChainhookConfig
source§impl<'de> Deserialize<'de> for ChainhookConfig
impl<'de> Deserialize<'de> for ChainhookConfig
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
Auto Trait Implementations§
impl RefUnwindSafe for ChainhookConfig
impl Send for ChainhookConfig
impl Sync for ChainhookConfig
impl Unpin for ChainhookConfig
impl UnwindSafe for ChainhookConfig
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.