pub struct SessionCreate {
pub user_name: String,
pub password: String,
pub token: Option<String>,
pub links: Option<LinksUpdate>,
}Expand description
Create struct corresponding to Session
Fields§
§user_name: String§password: String§token: Option<String>§links: Option<LinksUpdate>Implementations§
Source§impl SessionCreate
impl SessionCreate
pub fn builder(user_name: String, password: String) -> Self
pub fn build(self) -> Self
pub fn with_token(self, v: String) -> Self
pub fn with_links(self, v: LinksUpdate) -> Self
Trait Implementations§
Source§impl Creatable<SessionCreate, Session> for SessionCollection
impl Creatable<SessionCreate, Session> for SessionCollection
Source§impl Debug for SessionCreate
impl Debug for SessionCreate
Auto Trait Implementations§
impl Freeze for SessionCreate
impl RefUnwindSafe for SessionCreate
impl Send for SessionCreate
impl Sync for SessionCreate
impl Unpin for SessionCreate
impl UnsafeUnpin for SessionCreate
impl UnwindSafe for SessionCreate
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