Rust referenceweave-nexus
weave-nexus · config
Source declarations, signatures and documentation for config.
Source: sigil/weave/models/nexus/src/config.rs. SHA-256: 12dc6a17f35cc3e22a90b73d2f2fd0d927d444459d99c5ca0743400c7af777ad.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
config::NexusConfig
Configuration for Nexus
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NexusConfig {
/// Maximum number of input strands
pub max_input_strands: usize,
/// View update interval
pub update_interval: Duration,
/// Maximum view size in entries
pub max_view_entries: usize,
/// Enable automatic view updates
pub auto_update: bool,
/// View cache configuration
pub view_config: ViewConfig,
/// Governance rules (optional)
pub governance: Option<GovernanceRules>,
/// Enable event streaming
pub enable_events: bool,
/// Batch size for processing entries
pub batch_size: usize,
/// Maximum bytes per batch before a flush
pub max_batch_bytes: usize
}Source line: 9.
config::ViewConfig
Configuration for view generation
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ViewConfig {
/// Cache generated views
pub cache_enabled: bool,
/// View cache size
pub cache_size: usize,
/// View retention period
pub retention: Duration,
/// Enable view persistence
pub persist_views: bool
}Source line: 56.