pub struct PlexSourceRequest {Show 15 fields
pub name: String,
pub slug: String,
pub enabled: Option<bool>,
pub authentication_flow: Option<Option<Uuid>>,
pub enrollment_flow: Option<Option<Uuid>>,
pub user_property_mappings: Option<Vec<Uuid>>,
pub group_property_mappings: Option<Vec<Uuid>>,
pub policy_engine_mode: Option<PolicyEngineMode>,
pub user_matching_mode: Option<UserMatchingModeEnum>,
pub user_path_template: Option<String>,
pub group_matching_mode: Option<GroupMatchingModeEnum>,
pub client_id: Option<String>,
pub allowed_servers: Option<Vec<String>>,
pub allow_friends: Option<bool>,
pub plex_token: String,
}
Expand description
PlexSourceRequest : Plex Source Serializer
Fields§
§name: String
Source’s display Name.
slug: String
Internal source name, used in URLs.
enabled: Option<bool>
§authentication_flow: Option<Option<Uuid>>
Flow to use when authenticating existing users.
enrollment_flow: Option<Option<Uuid>>
Flow to use when enrolling new users.
user_property_mappings: Option<Vec<Uuid>>
§group_property_mappings: Option<Vec<Uuid>>
§policy_engine_mode: Option<PolicyEngineMode>
§user_matching_mode: Option<UserMatchingModeEnum>
How the source determines if an existing user should be authenticated or a new user enrolled.
user_path_template: Option<String>
§group_matching_mode: Option<GroupMatchingModeEnum>
How the source determines if an existing group should be used or a new group created.
client_id: Option<String>
Client identifier used to talk to Plex.
allowed_servers: Option<Vec<String>>
Which servers a user has to be a member of to be granted access. Empty list allows every server.
allow_friends: Option<bool>
Allow friends to authenticate, even if you don’t share a server.
plex_token: String
Plex token used to check friends
Implementations§
Trait Implementations§
Source§impl Clone for PlexSourceRequest
impl Clone for PlexSourceRequest
Source§fn clone(&self) -> PlexSourceRequest
fn clone(&self) -> PlexSourceRequest
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 PlexSourceRequest
impl Debug for PlexSourceRequest
Source§impl Default for PlexSourceRequest
impl Default for PlexSourceRequest
Source§fn default() -> PlexSourceRequest
fn default() -> PlexSourceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlexSourceRequest
impl<'de> Deserialize<'de> for PlexSourceRequest
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
Source§impl PartialEq for PlexSourceRequest
impl PartialEq for PlexSourceRequest
Source§impl Serialize for PlexSourceRequest
impl Serialize for PlexSourceRequest
impl StructuralPartialEq for PlexSourceRequest
Auto Trait Implementations§
impl Freeze for PlexSourceRequest
impl RefUnwindSafe for PlexSourceRequest
impl Send for PlexSourceRequest
impl Sync for PlexSourceRequest
impl Unpin for PlexSourceRequest
impl UnwindSafe for PlexSourceRequest
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