pub enum Pillar {
Reality,
Contracts,
DevX,
Cloud,
Ai,
}Expand description
MockForge pillar identifier
Every feature in MockForge maps to one or more pillars. This structure helps:
- Communicate value clearly in changelogs, docs, and marketing
- Prioritize development based on pillar investment
- Maintain consistency across features and releases
- Guide users to the right features for their needs
Variants§
Reality
Reality pillar - everything that makes mocks feel like a real, evolving backend
Key capabilities:
- Realistic data generation with relationships and constraints
- Stateful behavior and persistence
- Network condition simulation (latency, packet loss, failures)
- Time-based mutations and temporal simulation
- Progressive data evolution and drift
- Multi-protocol support
Contracts
Contracts pillar - schema, drift, validation, and safety nets
Key capabilities:
- OpenAPI/GraphQL schema validation
- Request/response validation with detailed error reporting
- Contract drift detection and monitoring
- Automatic API sync and change detection
- Schema-driven mock generation
DevX
DevX pillar - SDKs, generators, playgrounds, ergonomics
Key capabilities:
- Multi-language SDKs (Rust, Node.js, Python, Go, Java, .NET)
- Client code generation (React, Vue, Angular, Svelte)
- Interactive playgrounds and admin UI
- CLI tooling and configuration management
- Comprehensive documentation and examples
- Plugin system for extensibility
Cloud
Cloud pillar - registry, orgs, governance, monetization, marketplace
Key capabilities:
- Organization and user management
- Scenario marketplace and sharing
- Registry server for mock distribution
- Cloud workspaces and synchronization
- Governance and access controls
- Monetization infrastructure
Ai
AI pillar - LLM/voice flows, AI diff/assist, generative behaviors
Key capabilities:
- LLM-powered mock generation
- AI-driven data synthesis
- Voice interface for mock creation
- Intelligent contract analysis
- Generative data behaviors
- Natural language to mock conversion
Implementations§
Source§impl Pillar
impl Pillar
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Convert pillar to lowercase string representation
§Examples
use mockforge_core::pillars::Pillar;
assert_eq!(Pillar::Reality.as_str(), "reality");
assert_eq!(Pillar::Contracts.as_str(), "contracts");
assert_eq!(Pillar::DevX.as_str(), "devx");
assert_eq!(Pillar::Cloud.as_str(), "cloud");
assert_eq!(Pillar::Ai.as_str(), "ai");Sourcepub fn from_str(s: &str) -> Option<Self>
pub fn from_str(s: &str) -> Option<Self>
Parse pillar from string (case-insensitive)
§Examples
use mockforge_core::pillars::Pillar;
assert_eq!(Pillar::from_str("reality"), Some(Pillar::Reality));
assert_eq!(Pillar::from_str("REALITY"), Some(Pillar::Reality));
assert_eq!(Pillar::from_str("Contracts"), Some(Pillar::Contracts));
assert_eq!(Pillar::from_str("devx"), Some(Pillar::DevX));
assert_eq!(Pillar::from_str("invalid"), None);Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Get display name for the pillar (with brackets for changelog format)
§Examples
use mockforge_core::pillars::Pillar;
assert_eq!(Pillar::Reality.display_name(), "[Reality]");
assert_eq!(Pillar::Contracts.display_name(), "[Contracts]");Sourcepub fn all() -> Vec<Pillar>
pub fn all() -> Vec<Pillar>
Get all pillars
§Examples
use mockforge_core::pillars::Pillar;
let all = Pillar::all();
assert_eq!(all.len(), 5);
assert!(all.contains(&Pillar::Reality));
assert!(all.contains(&Pillar::Contracts));
assert!(all.contains(&Pillar::DevX));
assert!(all.contains(&Pillar::Cloud));
assert!(all.contains(&Pillar::Ai));Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pillar
impl<'de> Deserialize<'de> for Pillar
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Pillar
impl Eq for Pillar
impl StructuralPartialEq for Pillar
Auto Trait Implementations§
impl Freeze for Pillar
impl RefUnwindSafe for Pillar
impl Send for Pillar
impl Sync for Pillar
impl Unpin for Pillar
impl UnwindSafe for Pillar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.