docs
Some checks are pending
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run

This commit is contained in:
hinto.janai 2024-09-26 17:11:02 -04:00
parent 45b5a241ab
commit d86156f429
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
3 changed files with 6 additions and 6 deletions

View file

@ -71,7 +71,7 @@ use cuprate_epee_encoding::{
pub enum TxEntry { pub enum TxEntry {
/// This entry exists in the transaction pool. /// This entry exists in the transaction pool.
InPool { InPool {
/// This field is flattened. /// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
#[cfg_attr(feature = "serde", serde(flatten))] #[cfg_attr(feature = "serde", serde(flatten))]
prefix: TxEntryPrefix, prefix: TxEntryPrefix,
block_height: u64, block_height: u64,
@ -84,7 +84,7 @@ pub enum TxEntry {
}, },
/// This entry _does not_ exist in the transaction pool. /// This entry _does not_ exist in the transaction pool.
NotInPool { NotInPool {
/// This field is flattened. /// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
#[cfg_attr(feature = "serde", serde(flatten))] #[cfg_attr(feature = "serde", serde(flatten))]
prefix: TxEntryPrefix, prefix: TxEntryPrefix,
received_timestamp: u64, received_timestamp: u64,

View file

@ -27,13 +27,13 @@ pub struct Block {
#[serde(untagged)] #[serde(untagged)]
pub enum MinerTransaction { pub enum MinerTransaction {
V1 { V1 {
/// This field is flattened. /// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
#[serde(flatten)] #[serde(flatten)]
prefix: MinerTransactionPrefix, prefix: MinerTransactionPrefix,
signatures: [(); 0], signatures: [(); 0],
}, },
V2 { V2 {
/// This field is flattened. /// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
#[serde(flatten)] #[serde(flatten)]
prefix: MinerTransactionPrefix, prefix: MinerTransactionPrefix,
rct_signatures: MinerTransactionRctSignatures, rct_signatures: MinerTransactionRctSignatures,

View file

@ -20,13 +20,13 @@ use crate::json::output::Output;
#[serde(untagged)] #[serde(untagged)]
pub enum Transaction { pub enum Transaction {
V1 { V1 {
/// This field is flattened. /// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
#[serde(flatten)] #[serde(flatten)]
prefix: TransactionPrefix, prefix: TransactionPrefix,
signatures: Vec<String>, signatures: Vec<String>,
}, },
V2 { V2 {
/// This field is flattened. /// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
#[serde(flatten)] #[serde(flatten)]
prefix: TransactionPrefix, prefix: TransactionPrefix,
rct_signatures: RctSignatures, rct_signatures: RctSignatures,