pub struct RuntimeDatabaseBindingContext {
pub space_label: String,
pub skill_id: String,
pub binding_tag: String,
pub root_name: String,
pub space_root: String,
pub skill_dir: String,
pub skill_dir_name: String,
pub database_kind: RuntimeDatabaseKind,
pub default_database_path: String,
}Expand description
Stable host-facing binding context for one skill-scoped database backend. 面向宿主的稳定 skill 级数据库后端绑定上下文。
Fields§
§space_label: StringStable root label supplied by the host such as ROOT, PROJECT, or USER. 由宿主提供的稳定根标签,例如 ROOT、PROJECT 或 USER。
skill_id: StringStable skill identifier currently owning the database binding. 当前拥有数据库绑定的稳定技能标识符。
binding_tag: StringStable binding tag composed from the space label and skill id. 由空间标签与技能标识符组合得到的稳定绑定标签。
root_name: StringPhysical skill root label currently resolving the effective skill instance. 当前解析出生效技能实例时所命中的物理技能根标签。
space_root: StringPhysical skill root directory that owns the current effective skill instance. 当前生效技能实例所属的物理技能根目录。
skill_dir: StringPhysical skill directory path. 物理技能目录路径。
skill_dir_name: StringPhysical skill directory basename. 物理技能目录名称。
database_kind: RuntimeDatabaseKindLogical database kind requested by the current provider binding. 当前 provider 绑定请求的逻辑数据库类型。
default_database_path: StringDefault embedded database path resolved by the library for compatibility and diagnostics. 由库按内嵌规则解析出的默认数据库路径,用于兼容和诊断。
Implementations§
Source§impl RuntimeDatabaseBindingContext
impl RuntimeDatabaseBindingContext
Sourcepub fn new(
space_label: impl Into<String>,
skill_id: impl Into<String>,
root_name: impl Into<String>,
space_root: impl Into<String>,
skill_dir: impl Into<String>,
skill_dir_name: impl Into<String>,
database_kind: RuntimeDatabaseKind,
default_database_path: impl Into<String>,
) -> Self
pub fn new( space_label: impl Into<String>, skill_id: impl Into<String>, root_name: impl Into<String>, space_root: impl Into<String>, skill_dir: impl Into<String>, skill_dir_name: impl Into<String>, database_kind: RuntimeDatabaseKind, default_database_path: impl Into<String>, ) -> Self
Build one stable binding context from host-resolved root and skill information. 基于宿主已解析的根信息与技能信息构造稳定绑定上下文。
Trait Implementations§
Source§impl Clone for RuntimeDatabaseBindingContext
impl Clone for RuntimeDatabaseBindingContext
Source§fn clone(&self) -> RuntimeDatabaseBindingContext
fn clone(&self) -> RuntimeDatabaseBindingContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for RuntimeDatabaseBindingContext
impl<'de> Deserialize<'de> for RuntimeDatabaseBindingContext
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>,
Source§impl PartialEq for RuntimeDatabaseBindingContext
impl PartialEq for RuntimeDatabaseBindingContext
Source§fn eq(&self, other: &RuntimeDatabaseBindingContext) -> bool
fn eq(&self, other: &RuntimeDatabaseBindingContext) -> bool
self and other values to be equal, and is used by ==.impl Eq for RuntimeDatabaseBindingContext
impl StructuralPartialEq for RuntimeDatabaseBindingContext
Auto Trait Implementations§
impl Freeze for RuntimeDatabaseBindingContext
impl RefUnwindSafe for RuntimeDatabaseBindingContext
impl Send for RuntimeDatabaseBindingContext
impl Sync for RuntimeDatabaseBindingContext
impl Unpin for RuntimeDatabaseBindingContext
impl UnsafeUnpin for RuntimeDatabaseBindingContext
impl UnwindSafe for RuntimeDatabaseBindingContext
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
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
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>
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::Request