Struct db_core::AddRepository
source · pub struct AddRepository<'a> {
pub html_link: &'a str,
pub tags: Option<Vec<&'a str>>,
pub url: Url,
pub name: &'a str,
pub owner: &'a str,
pub description: Option<&'a str>,
pub website: Option<&'a str>,
pub import: bool,
}
Expand description
add new repository to database
Fields§
§html_link: &'a str
html link to the repository
repository topic tags
url: Url
url of the forge instance: with scheme but remove trailing slash url can be derived from html_link also, but used to link to user’s forge instance
name: &'a str
repository name
owner: &'a str
repository owner
description: Option<&'a str>
repository description, if any
website: Option<&'a str>
repository website, if any
import: bool
is this repository an import
Trait Implementations§
source§impl<'a> Clone for AddRepository<'a>
impl<'a> Clone for AddRepository<'a>
source§fn clone(&self) -> AddRepository<'a>
fn clone(&self) -> AddRepository<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for AddRepository<'a>
impl<'a> Debug for AddRepository<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for AddRepository<'a>
impl<'de: 'a, 'a> Deserialize<'de> for AddRepository<'a>
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq<AddRepository<'a>> for AddRepository<'a>
impl<'a> PartialEq<AddRepository<'a>> for AddRepository<'a>
source§fn eq(&self, other: &AddRepository<'a>) -> bool
fn eq(&self, other: &AddRepository<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.