pub struct FleetRoleMap { /* private fields */ }Expand description
Named fleet roster: role name → AgentProfile id.
Role and profile tokens are compared case-insensitively after trim + lowercase normalization.
Implementations§
Source§impl FleetRoleMap
impl FleetRoleMap
pub fn new() -> Self
Sourcepub fn insert(
&mut self,
role: impl Into<String>,
profile: impl Into<String>,
) -> Result<(), FleetRoleResolveError>
pub fn insert( &mut self, role: impl Into<String>, profile: impl Into<String>, ) -> Result<(), FleetRoleResolveError>
Insert a role → profile binding. Empty tokens are rejected.
pub fn from_pairs<I, R, P>(pairs: I) -> Result<Self, FleetRoleResolveError>
pub fn contains_role(&self, role: &str) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for FleetRoleMap
impl Clone for FleetRoleMap
Source§fn clone(&self) -> FleetRoleMap
fn clone(&self) -> FleetRoleMap
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 FleetRoleMap
impl Debug for FleetRoleMap
Source§impl Default for FleetRoleMap
impl Default for FleetRoleMap
Source§fn default() -> FleetRoleMap
fn default() -> FleetRoleMap
Returns the “default value” for a type. Read more
impl Eq for FleetRoleMap
Source§impl PartialEq for FleetRoleMap
impl PartialEq for FleetRoleMap
impl StructuralPartialEq for FleetRoleMap
Auto Trait Implementations§
impl Freeze for FleetRoleMap
impl RefUnwindSafe for FleetRoleMap
impl Send for FleetRoleMap
impl Sync for FleetRoleMap
impl Unpin for FleetRoleMap
impl UnsafeUnpin for FleetRoleMap
impl UnwindSafe for FleetRoleMap
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