Struct Content Location
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct ContentLocation {
pub root: ContentRoot,
pub field: ContentField,
pub index: Option<usize>,
}
Read-time location; not a stable edit handle or provider-wire offset.
Fields
root: ContentRoot
Owning normalized object.
field: ContentField
Field within that object.
index: Option<usize>
Content-part or tool-call array index; None for a scalar or whole payload.
Trait Implementations
impl Clone for ContentLocation
impl Clone for ContentLocation
clone
fn clone(&self) -> ContentLocation
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for ContentLocation
impl Debug for ContentLocation
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl PartialEq for ContentLocation
impl PartialEq for ContentLocation
eq
fn eq(&self, other: &ContentLocation) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for ContentLocation
impl Serialize for ContentLocation
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl WireValue<LlmContentLocation> for ContentLocation
impl WireValue<LlmContentLocation> for ContentLocation
to_wire
fn to_wire(self) -> Result<LlmContentLocation, ConversionError>
from_wire
fn from_wire(
value: LlmContentLocation,
) -> Result<ContentLocation, ConversionError>
impl Copy for ContentLocation
impl Copy for ContentLocation
impl Eq for ContentLocation
impl Eq for ContentLocation
impl StructuralPartialEq for ContentLocation
impl StructuralPartialEq for ContentLocation