pub trait StreamRefExt {
    fn stream_type(&self) -> StreamType;
    fn cid(&self) -> &Cid;
    fn at_commit(&self, commit: Cid) -> CommitId;
    fn to_base_id(&self) -> StreamId;
    fn to_bytes(&self) -> Vec<u8> ;

    fn to_base36_string(&self) -> String { ... }
    fn to_url(&self) -> String { ... }
}

Required Methods§

Get the StreamType.

Get the genesis Cid.

Create a new CommitId at the given commit.

Get the StreamId without the commit.

Encode the StreamRef into bytes.

Provided Methods§

Encode the StreamRef into a string.

Encode the StreamRef into a base36 URL.

Implementors§