pub struct GraphSection {
pub mode: String,
pub url: String,
pub namespace: String,
pub database: String,
pub username: String,
pub password_file: String,
pub scoring: GraphScoringConfig,
pub provenance: ProvenanceWeights,
pub dedup: GraphDedupConfig,
}Fields§
§mode: StringConnection mode: “embedded” or “server”
url: StringSurrealDB server URL (server mode only)
namespace: StringSurrealDB namespace
database: StringSurrealDB database name (typically the entity name)
username: StringSurrealDB username (typically the entity name)
password_file: StringPath to file containing the database password
scoring: GraphScoringConfigScoring weights for utility-weighted semantic search.
Maps to the [graph.scoring] section of .recall-echo.toml. When
absent, defaults preserve the original hard-coded weights
(0.45 / 0.30 / 0.25). See GraphScoringConfig for details.
provenance: ProvenanceWeightsEvidence weights per provenance class.
Maps to the [graph.provenance] section of .recall-echo.toml. When
absent, defaults are 1.0 external / 0.8 user / 0.05 self. See
ProvenanceWeights for details.
dedup: GraphDedupConfigSimilarity bands that decide when entity dedup pays for a model call.
Maps to the [graph.dedup] section of .recall-echo.toml. See
GraphDedupConfig for the bands and their defaults.
Trait Implementations§
Source§impl Clone for GraphSection
impl Clone for GraphSection
Source§fn clone(&self) -> GraphSection
fn clone(&self) -> GraphSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphSection
impl Debug for GraphSection
Source§impl Default for GraphSection
impl Default for GraphSection
Source§impl<'de> Deserialize<'de> for GraphSection
impl<'de> Deserialize<'de> for GraphSection
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>,
Auto Trait Implementations§
impl Freeze for GraphSection
impl RefUnwindSafe for GraphSection
impl Send for GraphSection
impl Sync for GraphSection
impl Unpin for GraphSection
impl UnsafeUnpin for GraphSection
impl UnwindSafe for GraphSection
Blanket Implementations§
impl<T> AsyncFriendly for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§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<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().