pub enum Location {
Uri(String),
Structured(Map<String, Value>),
}Expand description
Locator for DataRef.location — either a URI string or a structured
locator object. See acdp-data-ref.schema.json location.oneOf.
Variants§
Uri(String)
URI form: scheme + authority + path. MUST NOT contain credentials in the userinfo component (the body is signed and immutable, so leaked secrets cannot be redacted later).
Structured(Map<String, Value>)
Structured locator: object with a required dotted-namespace scheme
(e.g. kafka.offset, ipfs.cid, db.row). Additional keys are
permitted by schema.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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