pub enum StructPattern {
Config,
DataTransferObject,
AggregateRoot,
Standard,
}Expand description
Pattern classification for struct types.
Used to distinguish acceptable patterns from genuine god objects.
Variants§
Config
Configuration struct with factory methods
DataTransferObject
Data Transfer Object - data container with minimal behavior
AggregateRoot
Aggregate Root - domain entity with many fields but single responsibility
Standard
No recognizable pattern - standard struct
Trait Implementations§
Source§impl Clone for StructPattern
impl Clone for StructPattern
Source§fn clone(&self) -> StructPattern
fn clone(&self) -> StructPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructPattern
impl Debug for StructPattern
Source§impl PartialEq for StructPattern
impl PartialEq for StructPattern
impl Copy for StructPattern
impl Eq for StructPattern
impl StructuralPartialEq for StructPattern
Auto Trait Implementations§
impl Freeze for StructPattern
impl RefUnwindSafe for StructPattern
impl Send for StructPattern
impl Sync for StructPattern
impl Unpin for StructPattern
impl UnwindSafe for StructPattern
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more