pub struct ConversationCaps {Show 13 fields
pub read: bool,
pub comment: bool,
pub reply_in_thread: bool,
pub start_thread: bool,
pub edit_own: bool,
pub delete_own: bool,
pub resolve: bool,
pub reactions: bool,
pub events: bool,
pub internal_notes: bool,
pub read_flavor: MarkupFlavor,
pub write_flavor: MarkupFlavor,
pub max_body: Option<usize>,
}Expand description
What a control may be offered for, per provider and item kind. Every
false is a real “Unsupported” and hides the matching control.
Fields§
§read: bool§comment: bool§reply_in_thread: bool§start_thread: bool§edit_own: bool§delete_own: bool§resolve: bool§reactions: bool§events: bool§internal_notes: bool§read_flavor: MarkupFlavor§write_flavor: MarkupFlavor§max_body: Option<usize>Implementations§
Source§impl ConversationCaps
impl ConversationCaps
Sourcepub fn github(kind: ItemKind) -> Self
pub fn github(kind: ItemKind) -> Self
GitHub: issues have a flat comment list, pull requests also threads.
Sourcepub fn gitea(kind: ItemKind, can_resolve: bool) -> Self
pub fn gitea(kind: ItemKind, can_resolve: bool) -> Self
Gitea and Forgejo: a request has code threads (resolution only on Gitea), an issue a flat list; no reactions are read, no internal notes.
Sourcepub fn azure_devops(kind: ItemKind, server: bool) -> Self
pub fn azure_devops(kind: ItemKind, server: bool) -> Self
Azure DevOps. A pull request has threads (a reply is a comment of the
thread; the thread status is shown but not changed, so resolve is
off). A work item has a flat
comment list with no threads and no event history here. Azure DevOps
Server (7.0) takes work item comments as HTML, so it is written as
HTML and shown as the Markdown converted from it.
Sourcepub fn bitbucket(kind: ItemKind) -> Self
pub fn bitbucket(kind: ItemKind) -> Self
Bitbucket Cloud and Data Center: pull requests only (Cloud retired
its issue tracker; Data Center has none). A resolved thread is shown
but not changed (resolve off); no reactions, no internal notes.
Sourcepub fn gerrit(kind: ItemKind) -> Self
pub fn gerrit(kind: ItemKind) -> Self
Gerrit: changes only. Messages and comments cannot be edited or deleted by their author (only an administrator can delete a change message); a reply is posted at once into the comment’s thread.
Sourcepub fn jira(kind: ItemKind) -> Self
pub fn jira(kind: ItemKind) -> Self
Jira (Cloud and Data Center): a flat comment list, edit and delete
of one’s own, the changelog as events. Comments are read as wiki
markup (shown as Markdown); write_flavor is what goes on the wire:
the user types Markdown and it is converted to wiki. Internal
comments need a project role the profile does not know, so they
cannot be posted.
Sourcepub fn linear(kind: ItemKind) -> Self
pub fn linear(kind: ItemKind) -> Self
Linear: comments reply to a parent, the issue history is the events.
Sourcepub fn youtrack(kind: ItemKind) -> Self
pub fn youtrack(kind: ItemKind) -> Self
YouTrack: a flat comment list. The activity stream is not read, so there are no events.
Sourcepub fn redmine(kind: ItemKind, textile: bool) -> Self
pub fn redmine(kind: ItemKind, textile: bool) -> Self
Redmine: journals are the comments and the events; private notes
exist; a comment can be edited (Redmine 5+) but never deleted.
textile: the server formats text as Textile, so what the user
types as Markdown is converted for it.
Sourcepub fn trello(kind: ItemKind) -> Self
pub fn trello(kind: ItemKind) -> Self
Trello: the comments of a card, the moves between lists as events.
Sourcepub fn local_markdown(kind: ItemKind) -> Self
pub fn local_markdown(kind: ItemKind) -> Self
A folder of Markdown notes: comments live in the note file itself. No network, no events, and only the local author’s comments can be edited or deleted.
Trait Implementations§
Source§impl Clone for ConversationCaps
impl Clone for ConversationCaps
Source§impl Debug for ConversationCaps
impl Debug for ConversationCaps
Source§impl<'de> Deserialize<'de> for ConversationCaps
impl<'de> Deserialize<'de> for ConversationCaps
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>,
impl Eq for ConversationCaps
Source§impl PartialEq for ConversationCaps
impl PartialEq for ConversationCaps
Source§impl Serialize for ConversationCaps
impl Serialize for ConversationCaps
impl StructuralPartialEq for ConversationCaps
Auto Trait Implementations§
impl Forget for ConversationCaps
impl Freeze for ConversationCaps
impl Move for ConversationCaps
impl RefUnwindSafe for ConversationCaps
impl Send for ConversationCaps
impl Sync for ConversationCaps
impl Unpin for ConversationCaps
impl UnsafeUnpin for ConversationCaps
impl UnwindSafe for ConversationCaps
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.