pub struct ServerLibrary {
pub id: String,
pub name: String,
pub source: String,
pub root: Option<String>,
pub kind: LibraryType,
pub crypt: Option<bool>,
pub settings: ServerLibrarySettings,
pub credentials: Option<String>,
pub plugin: Option<String>,
pub password: Option<String>,
pub hidden: bool,
}Fields§
§id: String§name: String§source: String§root: Option<String>§kind: LibraryType§crypt: Option<bool>§settings: ServerLibrarySettings§credentials: Option<String>§plugin: Option<String>§password: Option<String>Implementations§
Source§impl ServerLibrary
impl ServerLibrary
pub fn is_virtual(&self) -> bool
Trait Implementations§
Source§impl Clone for ServerLibrary
impl Clone for ServerLibrary
Source§fn clone(&self) -> ServerLibrary
fn clone(&self) -> ServerLibrary
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 ServerLibrary
impl Debug for ServerLibrary
Source§impl Default for ServerLibrary
impl Default for ServerLibrary
Source§fn default() -> ServerLibrary
fn default() -> ServerLibrary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerLibrary
impl<'de> Deserialize<'de> for ServerLibrary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerLibrary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerLibrary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ServerLibrary> for ServerLibraryForRead
impl From<ServerLibrary> for ServerLibraryForRead
Source§fn from(lib: ServerLibrary) -> ServerLibraryForRead
fn from(lib: ServerLibrary) -> ServerLibraryForRead
Converts to this type from the input type.
Source§impl Serialize for ServerLibrary
impl Serialize for ServerLibrary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for ServerLibrary
impl Freeze for ServerLibrary
impl Move for ServerLibrary
impl RefUnwindSafe for ServerLibrary
impl Send for ServerLibrarywhere
RawVecInner: Send,
impl Sync for ServerLibrarywhere
RawVecInner: Sync,
impl Unpin for ServerLibrary
impl UnsafeUnpin for ServerLibrarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<UserMapping>: UnsafeUnpin,
impl UnwindSafe for ServerLibrarywhere
RawVecInner: UnwindSafe,
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