#[non_exhaustive]pub enum ConnectionService {
Show 27 variants
AmazonMusic,
BattleNet,
Bluesky,
BungieNet,
Crunchyroll,
Domain,
Ebay,
EpicGames,
Facebook,
GitHub,
Instagram,
LeagueOfLegends,
Mastodon,
PayPal,
PlayStationNetwork,
Reddit,
RiotGames,
Roblox,
Spotify,
Skype,
Steam,
TikTok,
Twitch,
X,
Xbox,
YouTube,
Unknown(CompactString),
}Expand description
discord-api-types counterpart: ConnectionService.
discord.js counterpart: ConnectionService (discord-api-types).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AmazonMusic
Amazon Music.
BattleNet
Battle.net. Deprecated: Battle.net connections were removed on 2026-09-22.
Undocumented: known from discord-api-types, no longer in the official docs.
Bluesky
Bluesky.
BungieNet
Bungie.net.
Crunchyroll
Crunchyroll.
Domain
A domain name.
Ebay
eBay.
EpicGames
Epic Games.
Facebook.
GitHub
GitHub.
Instagram. Can no longer be added by users.
LeagueOfLegends
League of Legends. Deprecated: no longer returned by Discord.
Undocumented: known from discord-api-types, no longer in the official docs.
Mastodon
Mastodon.
PayPal
PayPal.
PlayStationNetwork
PlayStation Network.
Reddit.
RiotGames
Riot Games. Deprecated: no longer returned by Discord.
Undocumented: known from discord-api-types, no longer in the official docs.
Roblox
Roblox.
Spotify
Spotify.
Skype
Skype. Can no longer be added by users.
Steam
Steam.
TikTok
TikTok.
Twitch
Twitch.
X
X (formerly Twitter).
Xbox
Xbox.
YouTube
YouTube.
Unknown(CompactString)
A value that this version of the library does not know about.
Discord may add new values at any time. They are preserved here so that no
information is lost and deserialization never fails because of them. Prefer
ConnectionService::from over constructing this variant directly.
Implementations§
Source§impl ConnectionService
impl ConnectionService
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the string Discord uses for this value.
discord.js counterpart: the enum’s string value in discord-api-types.
Sourcepub const fn is_unknown(&self) -> bool
pub const fn is_unknown(&self) -> bool
Returns true for a value this version of the library does not know about.
discord.js counterpart: none (discord.js passes unknown strings through).
Trait Implementations§
Source§impl AsRef<str> for ConnectionService
impl AsRef<str> for ConnectionService
Source§impl Clone for ConnectionService
impl Clone for ConnectionService
Source§impl Debug for ConnectionService
impl Debug for ConnectionService
Source§impl<'de> Deserialize<'de> for ConnectionService
impl<'de> Deserialize<'de> for ConnectionService
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Display for ConnectionService
impl Display for ConnectionService
impl Eq for ConnectionService
Source§impl From<&str> for ConnectionService
impl From<&str> for ConnectionService
Source§impl Hash for ConnectionService
impl Hash for ConnectionService
Source§impl Ord for ConnectionService
impl Ord for ConnectionService
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConnectionService
impl PartialEq for ConnectionService
Source§impl PartialOrd for ConnectionService
impl PartialOrd for ConnectionService
Auto Trait Implementations§
impl Forget for ConnectionService
impl Freeze for ConnectionService
impl Move for ConnectionService
impl RefUnwindSafe for ConnectionService
impl Send for ConnectionService
impl Sync for ConnectionService
impl Unpin for ConnectionService
impl UnsafeUnpin for ConnectionService
impl UnwindSafe for ConnectionService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more