Skip to main content

ObjectRef

Type Alias ObjectRef 

Source
pub type ObjectRef = UrlOr<Box<Object>>;
Expand description

A reference-valued property that may appear as a bare URL or as an inlined Object.

Object is recursive in its own properties, so the inline arm is boxed to keep the struct size predictable.

Aliased Type§

pub enum ObjectRef {
    Url(Url),
    Object(Box<Object>),
}

Variants§

§

Url(Url)

A bare URL reference to the remote resource.

§

Object(Box<Object>)

An inlined object of the target type.