Skip to main content

ArtifactIndexRow

Struct ArtifactIndexRow 

Source
pub struct ArtifactIndexRow {
Show 13 fields pub crate_name: CrateName, pub version: CrateVersion, pub features_json: FeaturesJson, pub dependency_c_metadata_json: DependencyCMetadataJson, pub c_metadata: CMetadata, pub compile_key: String, pub bundle_digest: String, pub bundle_size: u64, pub artifact_kind: ArtifactKind, pub crate_types: Vec<RustCrateType>, pub profile: Profile, pub emit: Vec<String>, pub min_glibc: Option<GlibcVersion>,
}
Expand description

One servable artifact row of the slice — everything a client needs to resolve (crate, version, features, dependency identities) to a bundle_digest it can fetch.

Fields§

§crate_name: CrateName

Crate name as published on crates.io.

§version: CrateVersion

Exact crate version.

§features_json: FeaturesJson

Canonicalized features list (sorted, deduplicated).

§dependency_c_metadata_json: DependencyCMetadataJson

Sorted (crate_name, c_metadata) identities of the dependencies this artifact was built against — the transitive-closure chain.

§c_metadata: CMetadata

Cargo’s -C metadata value — the exact cache lookup key.

§compile_key: String

Blake3 compile key of this artifact. A row is canonical — the identity semantic matching and closure walks may use — only when crate::public_cache::stable_c_metadata_for_compile_key maps it back to c_metadata; non-canonical rows remain servable by exact c_metadata lookup but must not participate in graph analysis.

§bundle_digest: String

Digest (sha256:…) of the <tag>.bundle blob the edge streams. Always non-empty: unbundled rows are not servable and never enter the index.

§bundle_size: u64

Byte length of that blob.

§artifact_kind: ArtifactKind

Primary artifact kind (rlib / dylib / proc-macro).

§crate_types: Vec<RustCrateType>

Declared Rust crate types.

§profile: Profile

Compilation profile observed from the captured rustc invocation.

§emit: Vec<String>

Sorted, deduplicated --emit modes observed from the invocation.

§min_glibc: Option<GlibcVersion>

Lowest glibc the artifact’s ELF members can dlopen against — the highest GLIBC_x.y in their version-needed entries, measured at publish. None for non-ELF payloads and for artifacts with no glibc dependency. A client on a glibc below this must not serve the row; it compiles the unit locally instead. On musl and non-Linux hosts the field is not applicable.

Trait Implementations§

Source§

impl Clone for ArtifactIndexRow

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ComposeSchema for ArtifactIndexRow

Source§

impl Debug for ArtifactIndexRow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ArtifactIndexRow

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ArtifactIndexRow

Source§

impl PartialEq for ArtifactIndexRow

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ArtifactIndexRow

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ArtifactIndexRow

Source§

impl ToSchema for ArtifactIndexRow

Source§

fn name() -> Cow<'static, str>

Return name of the schema. Read more
Source§

fn schemas(schemas: &mut Vec<(String, RefOr<Schema>)>)

Implement reference utoipa::openapi::schema::Schemas for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PartialSchema for T
where T: ComposeSchema + ?Sized,

Source§

fn schema() -> RefOr<Schema>

Return ref or schema of implementing type that can then be used to construct combined schemas.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more