pub struct DistributionReport {
pub binary: String,
pub repository: String,
pub installer_url: String,
pub install_command: String,
pub install_and_init_command: String,
pub next_command: String,
pub checksum: String,
pub install_dir: String,
pub prefix: String,
pub latest_url: String,
pub supported: usize,
pub targets: Vec<TargetView>,
}Expand description
The distribution, as a person or a script asks for it.
Fields§
§binary: StringThe command a person types after installing.
repository: Stringowner/name, the only host release assets come from.
installer_url: StringThe installer’s canonical URL.
install_command: StringThe one-line install command, composed from its parts.
install_and_init_command: StringThe same, initialising the repository afterwards.
next_command: StringWhat a person runs next.
checksum: StringThe digest algorithm the installer verifies.
install_dir: StringWhere the launchers go by default.
prefix: StringWhere the versioned trees go by default.
latest_url: StringWhere the stable release metadata is published.
supported: usizeHow many targets a release builds.
targets: Vec<TargetView>Every declared target, in the model’s order.
Trait Implementations§
Source§impl Clone for DistributionReport
impl Clone for DistributionReport
Source§fn clone(&self) -> DistributionReport
fn clone(&self) -> DistributionReport
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 DistributionReport
impl Debug for DistributionReport
Source§impl JsonSchema for DistributionReport
impl JsonSchema for DistributionReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DistributionReport
impl RefUnwindSafe for DistributionReport
impl Send for DistributionReport
impl Sync for DistributionReport
impl Unpin for DistributionReport
impl UnsafeUnpin for DistributionReport
impl UnwindSafe for DistributionReport
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