pub struct FlowRef {
pub namespace: String,
pub object_id: String,
pub version: Option<u64>,
}Expand description
A stable reference primitive for distributed FeltDB fabric
FlowRef separates logical identity from physical location. The same reference can be resolved on different peers.
Fields§
§namespace: StringNamespace containing the object (e.g., “docs”, “orders”, “embeddings”)
object_id: StringObject identifier within the namespace
version: Option<u64>Version of the object (for content addressing)
Implementations§
Source§impl FlowRef
impl FlowRef
Sourcepub fn new(namespace: impl Into<String>, object_id: impl Into<String>) -> Self
pub fn new(namespace: impl Into<String>, object_id: impl Into<String>) -> Self
Create a new FlowRef with namespace and object_id
Sourcepub fn with_version(
namespace: impl Into<String>,
object_id: impl Into<String>,
version: u64,
) -> Self
pub fn with_version( namespace: impl Into<String>, object_id: impl Into<String>, version: u64, ) -> Self
Create a FlowRef with explicit version
Sourcepub fn from_canonical(s: &str) -> Option<Self>
pub fn from_canonical(s: &str) -> Option<Self>
Parse from canonical form
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowRef
impl<'de> Deserialize<'de> for FlowRef
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 Eq for FlowRef
impl StructuralPartialEq for FlowRef
Auto Trait Implementations§
impl Freeze for FlowRef
impl RefUnwindSafe for FlowRef
impl Send for FlowRef
impl Sync for FlowRef
impl Unpin for FlowRef
impl UnsafeUnpin for FlowRef
impl UnwindSafe for FlowRef
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