pub struct Output { /* private fields */ }Expand description
Unified output facade for CLI commands.
Implementations§
Source§impl Output
impl Output
pub fn new( json: bool, user_name: Option<String>, max_width: Option<usize>, no_trunc: bool, ) -> Self
pub fn auth_status(&self, status: AuthStatus) -> Result<()>
pub fn auth_scopes(&self, scopes: AuthScopes) -> Result<()>
pub fn player_status(&self, status: PlayerStatus) -> Result<()>
pub fn now_playing(&self, status: PlayerStatus) -> Result<()>
pub fn search_results(&self, results: SearchResults) -> Result<()>
pub fn queue( &self, now_playing_id: Option<&str>, items: Vec<Track>, ) -> Result<()>
pub fn recently_played( &self, now_playing_id: Option<&str>, items: Vec<SearchItem>, ) -> Result<()>
pub fn cache_status(&self, status: CacheStatus) -> Result<()>
pub fn action(&self, event: &str, message: &str) -> Result<()>
pub fn album_info(&self, album: Album) -> Result<()>
pub fn artist_info(&self, artist: Artist) -> Result<()>
pub fn playlist_list(&self, playlists: Vec<Playlist>) -> Result<()>
pub fn playlist_list_with_pins( &self, playlists: Vec<Playlist>, pins: Vec<PinnedPlaylist>, ) -> Result<()>
pub fn playlist_info(&self, playlist: PlaylistDetail) -> Result<()>
pub fn device_list(&self, devices: Vec<Device>) -> Result<()>
pub fn settings(&self, settings: Settings) -> Result<()>
pub fn pin_list(&self, pins: Vec<PinnedPlaylist>) -> Result<()>
pub fn help(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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