pub struct FabricUri { /* private fields */ }Expand description
A URI addressing an object in the fabric store.
Format: fabric://pool/bucket/key
pool: logical cluster or namespace (e.g."default")bucket: container within the poolkey: object name (may contain/for hierarchical keys)
§Parsing
use grafos_store::FabricUri;
let uri: FabricUri = "fabric://default/images/photo.png".parse().unwrap();
assert_eq!(uri.pool(), "default");
assert_eq!(uri.bucket(), "images");
assert_eq!(uri.key(), "photo.png");Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FabricUri
impl<'de> Deserialize<'de> for FabricUri
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 FabricUri
impl StructuralPartialEq for FabricUri
Auto Trait Implementations§
impl Freeze for FabricUri
impl RefUnwindSafe for FabricUri
impl Send for FabricUri
impl Sync for FabricUri
impl Unpin for FabricUri
impl UnwindSafe for FabricUri
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