pub struct Ticket {
pub id: String,
pub user_uri: String,
pub user_login: String,
pub result: ResultCode,
pub start_time: i64,
pub end_time: i64,
}Fields§
§id: String§user_uri: StringUri пользователя
user_login: Stringlogin пользователя
result: ResultCodeКод результата, если тикет не валидный != ResultCode.Ok
start_time: i64Дата начала действия тикета
end_time: i64Дата окончания действия тикета
Implementations§
Source§impl Ticket
impl Ticket
pub fn update_from_individual(&mut self, src: &mut Individual)
pub fn is_ticket_valid(&mut self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnwindSafe for Ticket
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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