pub struct XtreamUserProfile {
pub username: String,
pub password: String,
pub message: String,
pub auth: u8,
pub status: String,
pub exp_date: Option<String>,
pub is_trial: Option<String>,
pub active_cons: Option<Value>,
pub created_at: Option<String>,
pub max_connections: Option<Value>,
pub allowed_output_formats: Vec<String>,
}Expand description
User account information.
Fields§
§username: String§password: String§message: StringServer message (MOTD, notices).
auth: u8Authentication flag (1 = authenticated).
status: StringAccount status (e.g. “Active”, “Disabled”).
exp_date: Option<String>Expiration date as a Unix timestamp string.
is_trial: Option<String>Whether this is a trial account (“0” or “1”).
active_cons: Option<Value>Number of currently active connections.
created_at: Option<String>Account creation date.
max_connections: Option<Value>Maximum concurrent connections (string in many implementations).
allowed_output_formats: Vec<String>Formats the user is allowed to access (e.g. ["ts", "m3u8"]).
Trait Implementations§
Source§impl Clone for XtreamUserProfile
impl Clone for XtreamUserProfile
Source§fn clone(&self) -> XtreamUserProfile
fn clone(&self) -> XtreamUserProfile
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 XtreamUserProfile
impl Debug for XtreamUserProfile
Source§impl<'de> Deserialize<'de> for XtreamUserProfile
impl<'de> Deserialize<'de> for XtreamUserProfile
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 Freeze for XtreamUserProfile
impl RefUnwindSafe for XtreamUserProfile
impl Send for XtreamUserProfile
impl Sync for XtreamUserProfile
impl Unpin for XtreamUserProfile
impl UnsafeUnpin for XtreamUserProfile
impl UnwindSafe for XtreamUserProfile
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