Struct tbot::types::LoginUrl[][src]

#[must_use]
pub struct LoginUrl { /* fields omitted */ }

Represents a LoginUrl.

Implementations

impl LoginUrl[src]

pub fn new(url: impl Into<String>) -> Self[src]

Constructs a new LoginUrl.

pub fn forward_text(self, text: impl Into<String>) -> Self[src]

Configures forward_text.

pub fn bot_username(self, username: impl Into<String>) -> Self[src]

Configures bot_username.

pub const fn should_request_write_access(self, should_request: bool) -> Self[src]

Configures request_write_access.

Trait Implementations

impl Clone for LoginUrl[src]

impl Debug for LoginUrl[src]

impl Hash for LoginUrl[src]

impl PartialEq<LoginUrl> for LoginUrl[src]

impl Serialize for LoginUrl[src]

impl Eq for LoginUrl[src]

impl StructuralEq for LoginUrl[src]

impl StructuralPartialEq for LoginUrl[src]

Auto Trait Implementations

impl RefUnwindSafe for LoginUrl

impl Send for LoginUrl

impl Sync for LoginUrl

impl Unpin for LoginUrl

impl UnwindSafe for LoginUrl

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.