pub struct ServerLibraryForAdd {
pub name: String,
pub source: String,
pub root: Option<String>,
pub settings: ServerLibrarySettings,
pub kind: LibraryType,
pub crypt: Option<bool>,
pub credentials: Option<String>,
pub plugin: Option<String>,
pub password: Option<String>,
}Expand description
A library to create (POST /libraries).
Fields§
§name: String§source: StringPathProvider (a folder on the server), VirtualProvider (media stay at their
source URL) or PluginProvider. An IPTV library is always virtual.
root: Option<String>The folder, or the playlist URL of an IPTV library.
settings: ServerLibrarySettings§kind: LibraryType§crypt: Option<bool>§credentials: Option<String>§plugin: Option<String>§password: Option<String>Protects the files the server stores for the library.
Trait Implementations§
Source§impl Clone for ServerLibraryForAdd
impl Clone for ServerLibraryForAdd
Source§impl Debug for ServerLibraryForAdd
impl Debug for ServerLibraryForAdd
Source§impl Default for ServerLibraryForAdd
impl Default for ServerLibraryForAdd
Source§impl<'de> Deserialize<'de> for ServerLibraryForAdd
impl<'de> Deserialize<'de> for ServerLibraryForAdd
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ServerLibraryForAdd
impl Freeze for ServerLibraryForAdd
impl Move for ServerLibraryForAdd
impl RefUnwindSafe for ServerLibraryForAdd
impl Send for ServerLibraryForAddwhere
RawVecInner: Send,
impl Sync for ServerLibraryForAddwhere
RawVecInner: Sync,
impl Unpin for ServerLibraryForAdd
impl UnsafeUnpin for ServerLibraryForAddwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<UserMapping>: UnsafeUnpin,
impl UnwindSafe for ServerLibraryForAddwhere
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