pub enum Endpoint {
Show 19 variants
SendMessage,
GetMessages,
UploadFile,
ResumableUploadFile,
EditMessage,
DeleteMessage,
GetMessage,
GetMessageHistory,
ReportMessage,
MatchesNarrow,
Register,
Reaction,
Render,
FetchApiKey,
UpdateMessageFlags,
UpdateMessageFlagsNarrow,
MarkAllAsRead,
MarkStreamAsRead,
MarkTopicAsRead,
}Expand description
Represents the Zulip API endpoint variants.
Variants§
SendMessage
Represents the Send Message API endpoint.
GetMessages
Represents the Get Messages API endpoint.
UploadFile
Represents the Upload File API endpoint.
ResumableUploadFile
Represents the Resumable Upload File API endpoint.
EditMessage
Represents the Edit Message API endpoint.
DeleteMessage
Represents the Delete Message API endpoint.
GetMessage
Represents the Get Message API endpoint.
GetMessageHistory
Represents the Get Message History API endpoint.
ReportMessage
Represents the Report Message API endpoint.
MatchesNarrow
Represents the Matches Narrow API endpoint.
Register
Represents the Register API endpoint.
Reaction
Represents the Reactions API endpoint.
Render
Represents the Render API endpoint.
FetchApiKey
Represents the Fetch API Key API endpoint.
UpdateMessageFlags
Represents the Update Message Flags API endpoint.
UpdateMessageFlagsNarrow
Represents the Update Message Flags for Narrow API endpoint.
MarkAllAsRead
Represents the Mark All as Read API endpoint.
MarkStreamAsRead
Represents the Mark Stream as Read API endpoint.
MarkTopicAsRead
Represents the Mark Topic as Read API endpoint.
Implementations§
Source§impl Endpoint
impl Endpoint
Sourcepub const SEND_MESSAGE: &str = "api/v1/messages"
pub const SEND_MESSAGE: &str = "api/v1/messages"
Represents the string value for the Send Message endpoint.
Sourcepub const GET_MESSAGES: &str = "api/v1/messages"
pub const GET_MESSAGES: &str = "api/v1/messages"
Represents the string value for the Get Messages endpoint.
Sourcepub const UPLOAD_FILE: &str = "api/v1/user_uploads"
pub const UPLOAD_FILE: &str = "api/v1/user_uploads"
Represents the string value for the Upload File endpoint.
Sourcepub const RESUMABLE_UPLOAD_FILE: &str = "api/v1/tus"
pub const RESUMABLE_UPLOAD_FILE: &str = "api/v1/tus"
Represents the string value for the Resumable Upload File endpoint.
Sourcepub const EDIT_MESSAGE: &str = "api/v1/messages"
pub const EDIT_MESSAGE: &str = "api/v1/messages"
Represents the string value for the Edit Message endpoint.
Sourcepub const DELETE_MESSAGE: &str = "api/v1/messages"
pub const DELETE_MESSAGE: &str = "api/v1/messages"
Represents the string value for the Delete Message endpoint.
Sourcepub const GET_MESSAGE: &str = "api/v1/messages"
pub const GET_MESSAGE: &str = "api/v1/messages"
Represents the string value for the Get Message endpoint.
Sourcepub const GET_MESSAGE_HISTORY: &str = "api/v1/messages"
pub const GET_MESSAGE_HISTORY: &str = "api/v1/messages"
Represents the string value for the Get Message History endpoint.
Sourcepub const REPORT_MESSAGE: &str = "api/v1/messages"
pub const REPORT_MESSAGE: &str = "api/v1/messages"
Represents the string value for the Report Message endpoint.
Sourcepub const MATCHES_NARROW: &str = "api/v1/messages/matches_narrow"
pub const MATCHES_NARROW: &str = "api/v1/messages/matches_narrow"
Represents the string value for the Matches Narrow endpoint.
Sourcepub const REGISTER: &str = "api/v1/register"
pub const REGISTER: &str = "api/v1/register"
Represents the string value for the Register endpoint.
Sourcepub const REACTION: &str = "api/v1/messages"
pub const REACTION: &str = "api/v1/messages"
Represents the string value for the Reactions endpoint.
Sourcepub const RENDER: &str = "api/v1/messages/render"
pub const RENDER: &str = "api/v1/messages/render"
Represents the string value for the Render endpoint.
Sourcepub const FETCH_API_KEY: &str = "api/v1/fetch_api_key"
pub const FETCH_API_KEY: &str = "api/v1/fetch_api_key"
Represents the string value for the Fetch API Key endpoint.
Sourcepub const UPDATE_MESSAGE_FLAGS: &str = "api/v1/messages/flags"
pub const UPDATE_MESSAGE_FLAGS: &str = "api/v1/messages/flags"
Represents the string value for the Update Message Flags endpoint.
Sourcepub const UPDATE_MESSAGE_FLAGS_NARROW: &str = "api/v1/messages/flags/narrow"
pub const UPDATE_MESSAGE_FLAGS_NARROW: &str = "api/v1/messages/flags/narrow"
Represents the string value for the Update Message Flags for Narrow endpoint.
Sourcepub const MARK_ALL_AS_READ: &str = "api/v1/mark_all_as_read"
pub const MARK_ALL_AS_READ: &str = "api/v1/mark_all_as_read"
Represents the string value for the Mark All as Read endpoint.
Sourcepub const MARK_STREAM_AS_READ: &str = "api/v1/mark_stream_as_read"
pub const MARK_STREAM_AS_READ: &str = "api/v1/mark_stream_as_read"
Represents the string value for the Mark Stream as Read endpoint.
Sourcepub const MARK_TOPIC_AS_READ: &str = "api/v1/mark_topic_as_read"
pub const MARK_TOPIC_AS_READ: &str = "api/v1/mark_topic_as_read"
Represents the string value for the Mark Topic as Read endpoint.
Trait Implementations§
impl Copy for Endpoint
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.