Struct acter_core::support::RestoreToken
source · pub struct RestoreToken {
pub is_guest: bool,
pub homeurl: Url,
pub session: CustomAuthSession,
pub db_passphrase: Option<String>,
/* private fields */
}
Expand description
Extensive Restore Token for Acter Sessions
Fields§
§is_guest: bool
Was this registered per guest-account?
homeurl: Url
Server homebase url
session: CustomAuthSession
Session to hand to client
db_passphrase: Option<String>
a passphrase for the underlying database
Implementations§
source§impl RestoreToken
impl RestoreToken
pub fn serialized( session: CustomAuthSession, homeurl: Url, is_guest: bool, db_passphrase: Option<String>, ) -> Result<String>
Trait Implementations§
source§impl Debug for RestoreToken
impl Debug for RestoreToken
source§impl<'de> Deserialize<'de> for RestoreToken
impl<'de> Deserialize<'de> for RestoreToken
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 RestoreToken
impl RefUnwindSafe for RestoreToken
impl Send for RestoreToken
impl Sync for RestoreToken
impl Unpin for RestoreToken
impl UnwindSafe for RestoreToken
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
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more