[][src]Struct gitlab::types::Namespace

pub struct Namespace {
    pub path: String,
    pub name: String,
    pub kind: NamespaceKind,
    pub full_path: String,
    pub members_count_with_descendants: Option<u64>,
    pub avatar_url: Option<String>,
    pub web_url: String,
    // some fields omitted
}

An entity which can own projects.

Fields

path: String

The URL of the namespace.

name: String

The name of the namespace.

kind: NamespaceKind

The kind of the namespace.

full_path: Stringmembers_count_with_descendants: Option<u64>

Number of members in the namespace and its descendants.

Only available when talking to GitLab as a user that can admin the namespace.

avatar_url: Option<String>

The URL of the user's avatar if namespace is a user.

web_url: String

The URL to the namespace page (user or group).

Implementations

impl Namespace[src]

pub fn id(&self) -> NamespaceId[src]

The ID of the namespace.

Trait Implementations

impl Clone for Namespace[src]

impl Debug for Namespace[src]

impl<'de> Deserialize<'de> for Namespace[src]

impl Serialize for Namespace[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.