More examples and get compiling with deny(missing_docs)

This commit is contained in:
James Wilson
2025-12-15 11:37:08 +00:00
parent 37d4cf7524
commit 34eeea2c7e
26 changed files with 494 additions and 74 deletions
+13 -1
View File
@@ -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,