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.
Auto Trait Implementations§
impl Freeze for RelationBuilder
impl RefUnwindSafe for RelationBuilder
impl Send for RelationBuilder
impl Sync for RelationBuilder
impl Unpin for RelationBuilder
impl UnwindSafe for RelationBuilder
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