pub struct RelationshipCacheConfig {
pub max_relationships_per_type: usize,
pub max_memory_bytes: usize,
pub ttl: Option<Duration>,
pub enable_metrics: bool,
}Expand description
Configuration for relationship cache
Fields§
§max_relationships_per_type: usizeMaximum number of cached relationships per model type
max_memory_bytes: usizeMaximum memory usage in bytes (0 = unlimited)
ttl: Option<Duration>Time to live for cached relationships
enable_metrics: boolWhether to enable cache metrics
Trait Implementations§
Source§impl Clone for RelationshipCacheConfig
impl Clone for RelationshipCacheConfig
Source§fn clone(&self) -> RelationshipCacheConfig
fn clone(&self) -> RelationshipCacheConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelationshipCacheConfig
impl Debug for RelationshipCacheConfig
Auto Trait Implementations§
impl Freeze for RelationshipCacheConfig
impl RefUnwindSafe for RelationshipCacheConfig
impl Send for RelationshipCacheConfig
impl Sync for RelationshipCacheConfig
impl Unpin for RelationshipCacheConfig
impl UnsafeUnpin for RelationshipCacheConfig
impl UnwindSafe for RelationshipCacheConfig
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more