pub struct TelegramSourceRequest {Show 16 fields
pub name: String,
pub slug: String,
pub enabled: Option<bool>,
pub promoted: Option<bool>,
pub authentication_flow: Option<Option<Uuid>>,
pub enrollment_flow: Option<Option<Uuid>>,
pub user_property_mappings: Option<Vec<Uuid>>,
pub group_property_mappings: Option<Vec<Uuid>>,
pub policy_engine_mode: Option<PolicyEngineMode>,
pub user_matching_mode: Option<UserMatchingModeEnum>,
pub user_path_template: Option<String>,
pub icon: Option<String>,
pub bot_username: String,
pub bot_token: String,
pub request_message_access: Option<bool>,
pub pre_authentication_flow: Uuid,
}Expand description
TelegramSourceRequest : Source Serializer
Fields§
§name: StringSource’s display Name.
slug: StringInternal source name, used in URLs.
enabled: Option<bool>§promoted: Option<bool>When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.
authentication_flow: Option<Option<Uuid>>Flow to use when authenticating existing users.
enrollment_flow: Option<Option<Uuid>>Flow to use when enrolling new users.
user_property_mappings: Option<Vec<Uuid>>§group_property_mappings: Option<Vec<Uuid>>§policy_engine_mode: Option<PolicyEngineMode>§user_matching_mode: Option<UserMatchingModeEnum>How the source determines if an existing user should be authenticated or a new user enrolled.
user_path_template: Option<String>§icon: Option<String>§bot_username: StringTelegram bot username
bot_token: StringTelegram bot token
request_message_access: Option<bool>Request access to send messages from your bot.
pre_authentication_flow: UuidFlow used before authentication.
Implementations§
Trait Implementations§
Source§impl Clone for TelegramSourceRequest
impl Clone for TelegramSourceRequest
Source§fn clone(&self) -> TelegramSourceRequest
fn clone(&self) -> TelegramSourceRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelegramSourceRequest
impl Debug for TelegramSourceRequest
Source§impl Default for TelegramSourceRequest
impl Default for TelegramSourceRequest
Source§fn default() -> TelegramSourceRequest
fn default() -> TelegramSourceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelegramSourceRequest
impl<'de> Deserialize<'de> for TelegramSourceRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TelegramSourceRequest
impl PartialEq for TelegramSourceRequest
Source§impl Serialize for TelegramSourceRequest
impl Serialize for TelegramSourceRequest
impl StructuralPartialEq for TelegramSourceRequest
Auto Trait Implementations§
impl Freeze for TelegramSourceRequest
impl RefUnwindSafe for TelegramSourceRequest
impl Send for TelegramSourceRequest
impl Sync for TelegramSourceRequest
impl Unpin for TelegramSourceRequest
impl UnsafeUnpin for TelegramSourceRequest
impl UnwindSafe for TelegramSourceRequest
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