Add LoginUrl::new

This commit is contained in:
Temirkhan Myrzamadi 2020-10-23 08:18:57 +06:00
parent 4c4f2bf67b
commit 9e9f6c1991

View file

@ -23,6 +23,10 @@ pub struct LoginUrl {
}
impl LoginUrl {
pub fn new<S>(url: S) -> Self {
Self { url: url.into(), forward_text: None, bot_username: None, request_write_access: None }
}
pub fn url<S>(mut self, val: S) -> Self
where
S: Into<String>,