#[non_exhaustive]pub struct Project {
pub name: String,
pub path_with_namespace: String,
pub default_branch: String,
pub web_url: String,
pub visibility: Option<String>,
}Expand description
A project (glab repo view --output json) — GitLab’s REST Project object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringProject name (the last path segment’s display name).
path_with_namespace: StringFull namespace path, e.g. "group/subgroup/repo".
default_branch: StringDefault branch name (empty for an empty project).
web_url: StringWeb URL.
visibility: Option<String>Visibility, e.g. "public", "internal", "private". None when glab
omits the field — a consumer must treat an absent visibility as unknown,
not as private (see ForgeRepo::private).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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
Mutably borrows from an owned value. Read more