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