pub struct SaveQueue {
pub player_id: PlayerId,
pub name: String,
}Expand description
Save the current queue as a new HEOS playlist.
use heos::HeosConnection;
use heos::command::player::SaveQueue;
use heos::data::player::PlayerId;
use std::time::Duration;
let heos = HeosConnection::connect_any(Duration::from_secs(1)).await?;
heos.command(SaveQueue {
player_id: PlayerId::from(42),
name: "MyNewPlaylist".to_string(),
}).await?;Fields§
§player_id: PlayerIdID of the player to retrieve the queue from.
name: StringName of the new playlist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SaveQueue
impl RefUnwindSafe for SaveQueue
impl Send for SaveQueue
impl Sync for SaveQueue
impl Unpin for SaveQueue
impl UnsafeUnpin for SaveQueue
impl UnwindSafe for SaveQueue
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