pub struct LoginPreventedResponse {
pub action_id: Option<Uuid>,
pub actioner_user_id: Option<Uuid>,
pub expiry: Option<i64>,
pub localized_name: Option<String>,
pub localized_option: Option<String>,
pub localized_reason: Option<String>,
pub name: Option<String>,
pub option: Option<String>,
pub reason: Option<String>,
pub reason_code: Option<String>,
}Expand description
LoginPreventedResponse : The summary of the action that is preventing login to be returned on the login response.
Fields§
§action_id: Option<Uuid>§actioner_user_id: Option<Uuid>§expiry: Option<i64>The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
localized_name: Option<String>§localized_option: Option<String>§localized_reason: Option<String>§name: Option<String>§option: Option<String>§reason: Option<String>§reason_code: Option<String>Implementations§
Source§impl LoginPreventedResponse
impl LoginPreventedResponse
Sourcepub fn new() -> LoginPreventedResponse
pub fn new() -> LoginPreventedResponse
The summary of the action that is preventing login to be returned on the login response.
Trait Implementations§
Source§impl Clone for LoginPreventedResponse
impl Clone for LoginPreventedResponse
Source§fn clone(&self) -> LoginPreventedResponse
fn clone(&self) -> LoginPreventedResponse
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 LoginPreventedResponse
impl Debug for LoginPreventedResponse
Source§impl Default for LoginPreventedResponse
impl Default for LoginPreventedResponse
Source§fn default() -> LoginPreventedResponse
fn default() -> LoginPreventedResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoginPreventedResponse
impl<'de> Deserialize<'de> for LoginPreventedResponse
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 LoginPreventedResponse
impl PartialEq for LoginPreventedResponse
Source§impl Serialize for LoginPreventedResponse
impl Serialize for LoginPreventedResponse
impl StructuralPartialEq for LoginPreventedResponse
Auto Trait Implementations§
impl Freeze for LoginPreventedResponse
impl RefUnwindSafe for LoginPreventedResponse
impl Send for LoginPreventedResponse
impl Sync for LoginPreventedResponse
impl Unpin for LoginPreventedResponse
impl UnwindSafe for LoginPreventedResponse
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