pub struct Profile {
pub team_id: String,
pub user_id: String,
pub team_name: Option<String>,
pub user_name: Option<String>,
pub client_id: Option<String>,
pub redirect_uri: Option<String>,
pub scopes: Option<Vec<String>>,
pub bot_scopes: Option<Vec<String>>,
pub user_scopes: Option<Vec<String>>,
pub default_token_type: Option<TokenType>,
}Expand description
Profile configuration data structure Contains non-secret information only
Fields§
§team_id: String§user_id: String§team_name: Option<String>§user_name: Option<String>§client_id: Option<String>OAuth client ID for this profile (optional for backward compatibility)
redirect_uri: Option<String>OAuth redirect URI for this profile (optional for backward compatibility)
scopes: Option<Vec<String>>OAuth scopes for this profile (legacy field, migrated to bot_scopes for backward compatibility)
bot_scopes: Option<Vec<String>>Bot OAuth scopes (new field)
user_scopes: Option<Vec<String>>User OAuth scopes (new field)
default_token_type: Option<TokenType>Default token type for this profile (optional for backward compatibility)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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