Struct git_topic_stage::Topic
[−]
[src]
pub struct Topic { pub commit: CommitId, pub author: Identity, pub stamp: DateTime<Utc>, pub id: u64, pub name: String, pub url: String, }
A branch for the stager.
Topics contain additional information so that they may be easily identified and so that the commit messages are useful to humans as well.
Fields
commit: CommitId
The HEAD commit of the topic branch.
The author of the stage request.
stamp: DateTime<Utc>
When the stage request occurred.
id: u64
An ID for the topic.
name: String
The name of the topic.
url: String
The URL of the topic.
Methods
impl Topic
[src]
fn new<N, U>(
commit: CommitId,
author: Identity,
stamp: DateTime<Utc>,
id: u64,
name: N,
url: U
) -> Self where
N: ToString,
U: ToString,
commit: CommitId,
author: Identity,
stamp: DateTime<Utc>,
id: u64,
name: N,
url: U
) -> Self where
N: ToString,
U: ToString,
Create a topic.
The ID must be unique across all topics.
Trait Implementations
impl Debug for Topic
[src]
impl Clone for Topic
[src]
fn clone(&self) -> Topic
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more