pub enum IntegrationKind {
Show 18 variants
Github,
GithubEnterprise,
Gitlab,
GitlabSelfManaged,
Bitbucket,
BitbucketDataCenter,
AzureDevops,
AzureDevopsServer,
JiraCloud,
JiraDataCenter,
Trello,
Gitea,
Forgejo,
Linear,
Youtrack,
Redmine,
Gerrit,
LocalMarkdown,
}Expand description
Which product a profile talks to. Spellings are snake_case and pinned
by tests: they are written to disk.
Variants§
Github
GithubEnterprise
Gitlab
GitlabSelfManaged
Bitbucket
BitbucketDataCenter
AzureDevops
AzureDevopsServer
JiraCloud
JiraDataCenter
Trello
Gitea
Forgejo
Linear
Youtrack
YouTrack Cloud and Server (same REST API): url is the instance.
Redmine
Redmine (issues only): url is the instance, the token is the REST API key.
Gerrit
Gerrit Code Review (review only): HTTP basic, the user name in
Integration::account and the HTTP password as the token.
LocalMarkdown
A folder of Markdown notes (an Obsidian vault subfolder, docs/issues):
no token, no network. url holds the folder.
Implementations§
Source§impl IntegrationKind
impl IntegrationKind
pub const ALL: &'static [IntegrationKind]
Sourcepub const IMPLEMENTED: &'static [IntegrationKind]
pub const IMPLEMENTED: &'static [IntegrationKind]
The kinds a client exists for (what a picker should offer today).
Sourcepub fn public_url(self) -> Option<&'static str>
pub fn public_url(self) -> Option<&'static str>
The fixed public host, for kinds that have exactly one.
Sourcepub fn default_url(self) -> Option<&'static str>
pub fn default_url(self) -> Option<&'static str>
The host prefilled (and editable) for kinds that have a well-known public instance but are not tied to it: Codeberg for Forgejo.
pub fn family(self) -> ApiFamily
pub fn category(self) -> IntegrationCategory
pub fn capabilities(self) -> Capabilities
Sourcepub fn token_help(self) -> Option<TokenHelp>
pub fn token_help(self) -> Option<TokenHelp>
How to mint a token for this kind.
Trait Implementations§
Source§impl Clone for IntegrationKind
impl Clone for IntegrationKind
Source§fn clone(&self) -> IntegrationKind
fn clone(&self) -> IntegrationKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for IntegrationKind
Source§impl Debug for IntegrationKind
impl Debug for IntegrationKind
Source§impl Default for IntegrationKind
impl Default for IntegrationKind
Source§fn default() -> IntegrationKind
fn default() -> IntegrationKind
Source§impl<'de> Deserialize<'de> for IntegrationKind
impl<'de> Deserialize<'de> for IntegrationKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntegrationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntegrationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for IntegrationKind
Source§impl Hash for IntegrationKind
impl Hash for IntegrationKind
Source§impl PartialEq for IntegrationKind
impl PartialEq for IntegrationKind
Source§impl Serialize for IntegrationKind
impl Serialize for IntegrationKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for IntegrationKind
Auto Trait Implementations§
impl Forget for IntegrationKind
impl Freeze for IntegrationKind
impl Move for IntegrationKind
impl RefUnwindSafe for IntegrationKind
impl Send for IntegrationKind
impl Sync for IntegrationKind
impl Unpin for IntegrationKind
impl UnsafeUnpin for IntegrationKind
impl UnwindSafe for IntegrationKind
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.