pub struct FleetFacts {
pub name: String,
pub members: Vec<AgentFacts>,
pub budget_usd: f64,
pub authorized: bool,
}Expand description
One fleet plus the members that give it its abilities. A fleet declares no capabilities of its own — it has exactly what its members have.
Fields§
§name: String§members: Vec<AgentFacts>§budget_usd: f64Implementations§
Source§impl FleetFacts
impl FleetFacts
pub fn blocker(&self) -> Option<Blocker>
Sourcepub fn members_with(&self, bin: &str) -> Vec<&AgentFacts>
pub fn members_with(&self, bin: &str) -> Vec<&AgentFacts>
The members that could actually run bin.
Trait Implementations§
Source§impl Clone for FleetFacts
impl Clone for FleetFacts
Source§fn clone(&self) -> FleetFacts
fn clone(&self) -> FleetFacts
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 moreAuto Trait Implementations§
impl Freeze for FleetFacts
impl RefUnwindSafe for FleetFacts
impl Send for FleetFacts
impl Sync for FleetFacts
impl Unpin for FleetFacts
impl UnsafeUnpin for FleetFacts
impl UnwindSafe for FleetFacts
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