pub struct HostedProject {
pub integration_id: String,
pub id: String,
pub name: String,
pub full_name: String,
pub description: Option<String>,
pub default_branch: Option<String>,
pub ssh_url: Option<String>,
pub https_url: Option<String>,
pub web_url: Option<String>,
pub private: bool,
}Fields§
§integration_id: StringThe integration this came from, so a list merged across several hosts can still say where each row belongs - and so clone this row knows which token to use.
id: StringThe host’s own identifier, as a string: a number for GitLab, the
owner/name path for GitHub. Opaque to everything except the
client that produced it.
name: StringThe short name (gitpoulpi).
full_name: StringThe full path (my-org/gitpoulpi, group/sub/thing) - what
the list is filtered on, because that is what a user types.
description: Option<String>§default_branch: Option<String>§ssh_url: Option<String>The two clone URLs, either of which can be missing when the host has that protocol disabled.
https_url: Option<String>§web_url: Option<String>The page a Open in browser action goes to.
private: boolImplementations§
Source§impl HostedProject
impl HostedProject
Sourcepub fn owner(&self) -> &str
pub fn owner(&self) -> &str
The owner section this project belongs to: the user, the GitHub
organisation or the GitLab group / sub-group path (group/sub for
group/sub/thing). Empty when the path has no owner.
Trait Implementations§
Source§impl Clone for HostedProject
impl Clone for HostedProject
Source§impl Debug for HostedProject
impl Debug for HostedProject
Source§impl<'de> Deserialize<'de> for HostedProject
impl<'de> Deserialize<'de> for HostedProject
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 HostedProject
Source§impl PartialEq for HostedProject
impl PartialEq for HostedProject
Source§impl Serialize for HostedProject
impl Serialize for HostedProject
impl StructuralPartialEq for HostedProject
Auto Trait Implementations§
impl Forget for HostedProject
impl Freeze for HostedProject
impl Move for HostedProject
impl RefUnwindSafe for HostedProject
impl Send for HostedProject
impl Sync for HostedProject
impl Unpin for HostedProject
impl UnsafeUnpin for HostedProject
impl UnwindSafe for HostedProject
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.