pub struct Project {
pub index: usize,
pub name: String,
pub owner: String,
pub is_private: bool,
pub is_mirror: bool,
pub description: String,
pub clone_url: String,
pub original_url: String,
pub default_branch: String,
pub repositories: Vec<Repository>,
}
Expand description
A software project that resides on a forge (Gitea, GitLab, etc.).
Fields
index: usize
Unique identifier of the project
name: String
Name of the project, relative to the owner
owner: String
Owner of the project, either a forge user or an organization.
is_private: bool
True if the visibility of the project is not public.
is_mirror: bool
True if it is a mirror of a project residing on another forge
description: String
Long, multiline, description of the project.
clone_url: String
URL to clone the git repository of the project.
original_url: String
URL of the homepage of the project
default_branch: String
Name of the default branch in the git repository
repositories: Vec<Repository>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Project
impl StructuralEq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more