pub struct RelationBuilder { /* private fields */ }Expand description
A builder for a relation entry in a relationship field.
Implementations§
Source§impl RelationBuilder
impl RelationBuilder
Sourcepub fn architectures(self, architectures: Vec<&str>) -> Self
pub fn architectures(self, architectures: Vec<&str>) -> Self
Set the architectures that this relation is only valid for.
Sourcepub fn version(self, constraint: VersionConstraint, version: &str) -> Self
pub fn version(self, constraint: VersionConstraint, version: &str) -> Self
Set the version constraint and version.
Sourcepub fn profile(self, profile: Vec<BuildProfile>) -> Self
pub fn profile(self, profile: Vec<BuildProfile>) -> Self
Add a build profile that this relation is only valid for.