mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
More examples and get compiling with deny(missing_docs)
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
//! This module exposes [`CustomValuesClient`], which has methods for working with custom values.
|
||||
//! It's created by calling [`crate::client::ClientAtBlock::custom_values()`].
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! pub use subxt::{OnlineClient, PolkadotConfig};
|
||||
//!
|
||||
//! let client = OnlineClient::new().await?;
|
||||
//! let at_block = client.at_current_block().await?;
|
||||
//!
|
||||
//! let custom_values = at_block.custom_values();
|
||||
//! ```
|
||||
|
||||
mod address;
|
||||
|
||||
use crate::client::OfflineClientAtBlockT;
|
||||
@@ -10,7 +22,7 @@ use scale_decode::IntoVisitor;
|
||||
|
||||
pub use address::{Address, DynamicAddress, StaticAddress, dynamic};
|
||||
|
||||
/// A client for accessing custom values stored in the metadata.
|
||||
/// A client for working with custom values. See [the module docs](crate::custom_values) for more.
|
||||
#[derive_where(Clone; Client)]
|
||||
pub struct CustomValuesClient<'atblock, T, Client> {
|
||||
client: &'atblock Client,
|
||||
|
||||
Reference in New Issue
Block a user