# prover.rs - source
Source of the Rust file `crates/core/src/config/prover.rs`.

Skip to main content

#
tlsn_core/config/
prover.rs

    1//! Prover configuration.
    2
    3use serde::{Deserialize, Serialize};
    4
    5/// Prover configuration.
    6#[derive(Debug, Clone, Serialize, Deserialize)]
    7pub struct ProverConfig {}
    8
    9impl ProverConfig {
    10    /// Creates a new builder.
    11    pub fn builder() -> ProverConfigBuilder {
    12        ProverConfigBuilder::default()
    13    }
    14}
    15
    16/// Builder for [`ProverConfig`].
    17#[derive(Debug, Default)]
    18pub struct ProverConfigBuilder {}
    19
    20impl ProverConfigBuilder {
    21    /// Builds the configuration.
    22    pub fn build(self) -> Result<ProverConfig, ProverConfigError> {
    23        Ok(ProverConfig {})
    24    }
    25}
    26
    27/// Error for [`ProverConfig`].
    28#[derive(Debug, thiserror::Error)]
    29#[error(transparent)]
    30pub struct ProverConfigError(#[from] ErrorRepr);
    31
    32#[derive(Debug, thiserror::Error)]
    33enum ErrorRepr {}