Add LoginUrl::new
@@ -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>,
