pub struct CommitId {
pub stream_type: StreamType,
pub cid: Cid,
pub commit: Option<Cid>,
}
Expand description
Commit identifier, includes type, genesis CID, commit CID.
Encoded as <multibase-prefix><multicodec-streamid><type><genesis-cid-bytes><commit-cid-bytes>
.
String representation is base36-encoding of the bytes above.
Fields§
§stream_type: StreamType
§cid: Cid
§commit: Option<Cid>
Implementations§
Trait Implementations§
source§impl PartialEq<CommitId> for CommitId
impl PartialEq<CommitId> for CommitId
source§impl StreamRefExt for CommitId
impl StreamRefExt for CommitId
source§fn stream_type(&self) -> StreamType
fn stream_type(&self) -> StreamType
Get the
StreamType
.source§fn to_base_id(&self) -> StreamId
fn to_base_id(&self) -> StreamId
Get the
StreamId
without the commit.source§fn to_base36_string(&self) -> String
fn to_base36_string(&self) -> String
Encode the
StreamRef
into a string.