pub struct FleetsGroup<'a> { /* private fields */ }Expand description
Endpoints for Fleets
Implementations§
Source§impl FleetsGroup<'_>
impl FleetsGroup<'_>
Sourcepub async fn get_character_fleet(
&self,
character_id: i64,
) -> EsiResult<CharacterFleet>
pub async fn get_character_fleet( &self, character_id: i64, ) -> EsiResult<CharacterFleet>
Return the fleet a character is in.
Sourcepub async fn get_fleet(&self, fleet_id: i64) -> EsiResult<FleetInfo>
pub async fn get_fleet(&self, fleet_id: i64) -> EsiResult<FleetInfo>
Return the settings of a fleet.
Sourcepub async fn update_fleet(
&self,
fleet_id: i64,
settings: &FleetUpdate,
) -> EsiResult<()>
pub async fn update_fleet( &self, fleet_id: i64, settings: &FleetUpdate, ) -> EsiResult<()>
Update the settings of a fleet.
Sourcepub async fn get_members(&self, fleet_id: i64) -> EsiResult<Vec<FleetMember>>
pub async fn get_members(&self, fleet_id: i64) -> EsiResult<Vec<FleetMember>>
Return the members of a fleet.
Sourcepub async fn invite_member(
&self,
fleet_id: i64,
invitation: &FleetInvitation,
) -> EsiResult<()>
pub async fn invite_member( &self, fleet_id: i64, invitation: &FleetInvitation, ) -> EsiResult<()>
Invite a character to a fleet.
Sourcepub async fn kick_member(&self, fleet_id: i64, member_id: i64) -> EsiResult<()>
pub async fn kick_member(&self, fleet_id: i64, member_id: i64) -> EsiResult<()>
Kick a member from a fleet.
Sourcepub async fn move_member(
&self,
fleet_id: i64,
member_id: i64,
movement: &FleetMovement,
) -> EsiResult<()>
pub async fn move_member( &self, fleet_id: i64, member_id: i64, movement: &FleetMovement, ) -> EsiResult<()>
Move a fleet member to another role, squad or wing.
Sourcepub async fn delete_squad(&self, fleet_id: i64, squad_id: i64) -> EsiResult<()>
pub async fn delete_squad(&self, fleet_id: i64, squad_id: i64) -> EsiResult<()>
Delete a fleet squad (only empty squads can be deleted).
Sourcepub async fn rename_squad(
&self,
fleet_id: i64,
squad_id: i64,
naming: &FleetNaming,
) -> EsiResult<()>
pub async fn rename_squad( &self, fleet_id: i64, squad_id: i64, naming: &FleetNaming, ) -> EsiResult<()>
Rename a fleet squad.
Sourcepub async fn get_wings(&self, fleet_id: i64) -> EsiResult<Vec<FleetWing>>
pub async fn get_wings(&self, fleet_id: i64) -> EsiResult<Vec<FleetWing>>
Return the wings and squads of a fleet.
Sourcepub async fn create_wing(&self, fleet_id: i64) -> EsiResult<CreatedWing>
pub async fn create_wing(&self, fleet_id: i64) -> EsiResult<CreatedWing>
Create a new wing in a fleet.
Sourcepub async fn delete_wing(&self, fleet_id: i64, wing_id: i64) -> EsiResult<()>
pub async fn delete_wing(&self, fleet_id: i64, wing_id: i64) -> EsiResult<()>
Delete a fleet wing (only empty wings can be deleted).
Sourcepub async fn rename_wing(
&self,
fleet_id: i64,
wing_id: i64,
naming: &FleetNaming,
) -> EsiResult<()>
pub async fn rename_wing( &self, fleet_id: i64, wing_id: i64, naming: &FleetNaming, ) -> EsiResult<()>
Rename a fleet wing.
Sourcepub async fn create_squad(
&self,
fleet_id: i64,
wing_id: i64,
) -> EsiResult<CreatedSquad>
pub async fn create_squad( &self, fleet_id: i64, wing_id: i64, ) -> EsiResult<CreatedSquad>
Create a new squad in a fleet wing.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FleetsGroup<'a>
impl<'a> !UnwindSafe for FleetsGroup<'a>
impl<'a> Freeze for FleetsGroup<'a>
impl<'a> Send for FleetsGroup<'a>
impl<'a> Sync for FleetsGroup<'a>
impl<'a> Unpin for FleetsGroup<'a>
impl<'a> UnsafeUnpin for FleetsGroup<'a>
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