Struct citadel::Client[][src]

#[repr(C)]pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn with(config: Config) -> Result<Self, Error>[src]

pub fn request(&mut self, request: Request) -> Result<Reply, Error>[src]

impl Client[src]

pub fn contract_list(&mut self) -> Result<Reply, Error>[src]

pub fn single_sig_create(
    &mut self,
    name: impl ToString,
    pubkey_chain: PubkeyChain,
    category: ContentType
) -> Result<Reply, Error>
[src]

pub fn contract_operations(
    &mut self,
    contract_id: ContractId
) -> Result<Reply, Error>
[src]

pub fn contract_rename(
    &mut self,
    contract_id: ContractId,
    name: impl ToString
) -> Result<Reply, Error>
[src]

pub fn contract_delete(
    &mut self,
    contract_id: ContractId
) -> Result<Reply, Error>
[src]

pub fn contract_balance(
    &mut self,
    contract_id: ContractId,
    rescan: bool,
    lookup_depth: u8
) -> Result<Reply, Error>
[src]

pub fn address_list(
    &mut self,
    contract_id: ContractId,
    rescan: bool,
    lookup_depth: u8
) -> Result<Reply, Error>
[src]

pub fn address_create(
    &mut self,
    contract_id: ContractId,
    index: Option<UnhardenedIndex>,
    mark_used: bool,
    legacy: bool
) -> Result<Reply, Error>
[src]

pub fn invoice_create(
    &mut self,
    category: InvoiceType,
    contract_id: ContractId,
    asset_id: Option<ContractId>,
    amount: AtomicValue,
    merchant: Option<impl ToString>,
    purpose: Option<impl ToString>,
    mark_used: bool,
    legacy: bool
) -> Result<Invoice, Error>
[src]

pub fn invoice_list(&mut self, contract_id: ContractId) -> Result<Reply, Error>[src]

pub fn invoice_pay(
    &mut self,
    contract_id: ContractId,
    invoice: Invoice,
    amount: Option<u64>,
    fee: u64,
    giveaway: Option<u64>
) -> Result<PreparedTransfer, Error>
[src]

pub fn finalize_publish_psbt(&mut self, psbt: Psbt) -> Result<Txid, Error>[src]

pub fn invoice_accept(
    &mut self,
    consignment: Consignment
) -> Result<Status, Error>
[src]

pub fn asset_list(&mut self) -> Result<Reply, Error>[src]

pub fn asset_import(
    &mut self,
    genesis_bech: impl AsRef<str>
) -> Result<Reply, Error>
[src]

Auto Trait Implementations

impl RefUnwindSafe for Client

impl Send for Client

impl !Sync for Client

impl Unpin for Client

impl UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,