pub struct GetProjectQuery<Cx, Str = CompactString> {
pub context: Cx,
pub auth: Option<GitlabAuth<Str>>,
pub id: ProjectRef<Str>,
pub license: Option<bool>,
pub statistics: Option<bool>,
pub with_custom_attributes: Option<bool>,
}Expand description
Get a single project
https://docs.gitlab.com/ee/api/projects.html#get-single-project
Fields§
§context: Cx§auth: Option<GitlabAuth<Str>>§id: ProjectRef<Str>§license: Option<bool>§statistics: Option<bool>§with_custom_attributes: Option<bool>Implementations§
Source§impl<Cx, Str> GetProjectQuery<Cx, Str>
impl<Cx, Str> GetProjectQuery<Cx, Str>
pub fn set_context<NewCx>( self, new_context: NewCx, ) -> GetProjectQuery<NewCx, Str>
pub fn as_view(&self) -> GetProjectQueryView<'_, Cx>
Source§impl<Str: AsRef<str>> GetProjectQuery<EmptyContext, Str>
impl<Str: AsRef<str>> GetProjectQuery<EmptyContext, Str>
pub const fn new(id: ProjectRef<Str>) -> Self
Trait Implementations§
Source§impl<Cx: Clone, Str: Clone> Clone for GetProjectQuery<Cx, Str>
impl<Cx: Clone, Str: Clone> Clone for GetProjectQuery<Cx, Str>
Source§fn clone(&self) -> GetProjectQuery<Cx, Str>
fn clone(&self) -> GetProjectQuery<Cx, Str>
Returns a duplicate 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<Cx: Ord, Str: Ord> Ord for GetProjectQuery<Cx, Str>
impl<Cx: Ord, Str: Ord> Ord for GetProjectQuery<Cx, Str>
Source§fn cmp(&self, other: &GetProjectQuery<Cx, Str>) -> Ordering
fn cmp(&self, other: &GetProjectQuery<Cx, Str>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Cx: PartialOrd, Str: PartialOrd> PartialOrd for GetProjectQuery<Cx, Str>
impl<Cx: PartialOrd, Str: PartialOrd> PartialOrd for GetProjectQuery<Cx, Str>
impl<Cx: Eq, Str: Eq> Eq for GetProjectQuery<Cx, Str>
impl<Cx, Str> StructuralPartialEq for GetProjectQuery<Cx, Str>
Auto Trait Implementations§
impl<Cx, Str> Freeze for GetProjectQuery<Cx, Str>
impl<Cx, Str> RefUnwindSafe for GetProjectQuery<Cx, Str>where
Cx: RefUnwindSafe,
Str: RefUnwindSafe,
impl<Cx, Str> Send for GetProjectQuery<Cx, Str>
impl<Cx, Str> Sync for GetProjectQuery<Cx, Str>
impl<Cx, Str> Unpin for GetProjectQuery<Cx, Str>
impl<Cx, Str> UnwindSafe for GetProjectQuery<Cx, Str>where
Cx: UnwindSafe,
Str: UnwindSafe,
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