pub struct ServerOverlay {
pub settings: ServerSettings,
pub music_dir_overwrite: Option<PathBuf>,
pub disable_discord_status: bool,
pub metadata_scan_depth: Option<ScanDepth>,
}Expand description
The Server Settings to use, with possible overwrite (like from CLI)
Fields§
§settings: ServerSettingsThe saved Server-Settings
music_dir_overwrite: Option<PathBuf>Overwrite what music directory should be opened first
This music dir will not be saved to the config
disable_discord_status: boolOverwrite disabling the discord status setting
metadata_scan_depth: Option<ScanDepth>Overwrite the Metadata scan depth
Implementations§
Source§impl ServerOverlay
impl ServerOverlay
Sourcepub fn get_metadata_scan_depth(&self) -> ScanDepth
pub fn get_metadata_scan_depth(&self) -> ScanDepth
Get the Library scan depth, either the overwrite if present, otherwise the config itself
Sourcepub fn get_discord_status_enable(&self) -> bool
pub fn get_discord_status_enable(&self) -> bool
Get whether to enable the discord status
Sourcepub fn get_first_music_dir(&self) -> Option<&Path>
pub fn get_first_music_dir(&self) -> Option<&Path>
Get the first music dir to use, either the overwrite if present, otherwise the config’s first music music (if any)
Trait Implementations§
Source§impl Clone for ServerOverlay
impl Clone for ServerOverlay
Source§fn clone(&self) -> ServerOverlay
fn clone(&self) -> ServerOverlay
Returns a duplicate of the value. Read more
1.0.0 · 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 ServerOverlay
impl Debug for ServerOverlay
Source§impl Default for ServerOverlay
impl Default for ServerOverlay
Source§fn default() -> ServerOverlay
fn default() -> ServerOverlay
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServerOverlay
impl PartialEq for ServerOverlay
impl StructuralPartialEq for ServerOverlay
Auto Trait Implementations§
impl Freeze for ServerOverlay
impl RefUnwindSafe for ServerOverlay
impl Send for ServerOverlay
impl Sync for ServerOverlay
impl Unpin for ServerOverlay
impl UnwindSafe for ServerOverlay
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().