pub struct ContentRef {
pub provider_id: String,
pub uri: String,
pub expires_at: Option<String>,
}Expand description
An opaque resolver handle for a compact/reference frame’s content.
ContextFrame::uri identifies the source resource; ContentRef::uri is a
distinct opaque resolver handle. A ContentRef also names the exact
provider_id that returned it, so a fan-out host routes
resolution back to that provider.
Fields§
§provider_id: StringThe exact provider that returned this frame; a fan-out host routes
context/resolve back to it.
uri: StringOpaque resolver handle, distinct from ContextFrame::uri.
expires_at: Option<String>When the handle stops resolving. Absent ⇒ no declared expiry.
Trait Implementations§
Source§impl Clone for ContentRef
impl Clone for ContentRef
Source§fn clone(&self) -> ContentRef
fn clone(&self) -> ContentRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentRef
impl Debug for ContentRef
Source§impl<'de> Deserialize<'de> for ContentRef
impl<'de> Deserialize<'de> for ContentRef
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 ContentRef
Source§impl PartialEq for ContentRef
impl PartialEq for ContentRef
Source§impl Serialize for ContentRef
impl Serialize for ContentRef
impl StructuralPartialEq for ContentRef
Auto Trait Implementations§
impl Freeze for ContentRef
impl RefUnwindSafe for ContentRef
impl Send for ContentRef
impl Sync for ContentRef
impl Unpin for ContentRef
impl UnsafeUnpin for ContentRef
impl UnwindSafe for ContentRef
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