Struct gitlab::types::ProjectSnippet
source · pub struct ProjectSnippet {
pub id: SnippetId,
pub title: String,
pub file_name: String,
pub author: UserBasic,
pub updated_at: DateTime<Utc>,
pub created_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub web_url: String,
}Expand description
A project-specific snippet.
Fields§
§id: SnippetIdThe ID of the snippet.
title: StringThe title of the snippet.
file_name: StringThe name of the snippet.
The author of the snippet.
updated_at: DateTime<Utc>When the snippet was last updated.
created_at: DateTime<Utc>When the snippet was created.
expires_at: Option<DateTime<Utc>>When the snippet was created.
web_url: StringThe URL of the snippet.
Trait Implementations§
source§impl Clone for ProjectSnippet
impl Clone for ProjectSnippet
source§fn clone(&self) -> ProjectSnippet
fn clone(&self) -> ProjectSnippet
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 Debug for ProjectSnippet
impl Debug for ProjectSnippet
source§impl<'de> Deserialize<'de> for ProjectSnippet
impl<'de> Deserialize<'de> for ProjectSnippet
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
Auto Trait Implementations§
impl RefUnwindSafe for ProjectSnippet
impl Send for ProjectSnippet
impl Sync for ProjectSnippet
impl Unpin for ProjectSnippet
impl UnwindSafe for ProjectSnippet
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