[−][src]Enum twilight_http::routing::Path
An enum representing a path, most useful for ratelimiting implementations.
Variants (Non-exhaustive)
ChannelsId(u64)Operating on a channel.
ChannelsIdInvites(u64)Operating on a channel's invites.
ChannelsIdMessages(u64)Operating on a channel's messages.
ChannelsIdMessagesBulkDelete(u64)Operating on a channel's messages by bulk deleting.
Operating on an individual channel's message.
ChannelsIdMessagesIdCrosspost(u64)Crossposting an individual channel's message.
ChannelsIdMessagesIdReactions(u64)Operating on an individual channel's message's reactions.
ChannelsIdMessagesIdReactionsUserIdType(u64)Operating on an individual channel's message's reactions while specifying the user ID and emoji type.
ChannelsIdPermissionsOverwriteId(u64)Operating on a channel's permission overwrites by ID.
ChannelsIdPins(u64)Operating on a channel's pins.
ChannelsIdPinsMessageId(u64)Operating on a channel's individual pinned message.
ChannelsIdTyping(u64)Operating on a channel's typing indicator.
ChannelsIdWebhooks(u64)Operating on a channel's webhooks.
ChannelsIdFollowers(u64)Operating on a channel's followers.
Operating with the gateway information.
Operating with the gateway information tailored to the current user.
Operating on the guild resource.
GuildsId(u64)Operating on one of user's guilds.
GuildsIdBans(u64)GuildsIdBansId(u64)GuildsIdAuditLogs(u64)GuildsIdBansUserId(u64)GuildsIdChannels(u64)GuildsIdWidget(u64)GuildsIdEmojis(u64)GuildsIdEmojisId(u64)GuildsIdIntegrations(u64)GuildsIdIntegrationsId(u64)GuildsIdIntegrationsIdSync(u64)GuildsIdInvites(u64)GuildsIdMembers(u64)GuildsIdMembersId(u64)GuildsIdMembersIdRolesId(u64)GuildsIdMembersMeNick(u64)GuildsIdPreview(u64)GuildsIdPrune(u64)GuildsIdRegions(u64)GuildsIdRoles(u64)GuildsIdRolesId(u64)GuildsIdVanityUrl(u64)GuildsIdWebhooks(u64)Operating on the state of a guild that the user is in.
Operating on the state of a guild that the user is in.
Operating on the voice regions available to the current user.
WebhooksId(u64)Operating on a webhook.
Trait Implementations
impl Clone for Path[src]
impl Debug for Path[src]
impl Eq for Path[src]
impl FromStr for Path[src]
type Err = PathParseError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>[src]
Parses a string into a path.
The string may start with a slash (/), which will be ignored.
Examples
use twilight_http::routing::Path; use std::str::FromStr; assert_eq!(Path::VoiceRegions, Path::from_str("/voice/regions")?); assert_eq!( Path::ChannelsIdMessages(123), Path::from_str("channels/123/messages")?, );
impl Hash for Path[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Path> for Path[src]
impl StructuralEq for Path[src]
impl StructuralPartialEq for Path[src]
impl<'_> TryFrom<(Method, &'_ str)> for Path[src]
Auto Trait Implementations
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,