pub trait StreamRefExt {
// Required methods
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> ⓘ;
// Provided methods
fn to_base36_string(&self) -> String { ... }
fn to_url(&self) -> String { ... }
}
Required Methods§
Sourcefn stream_type(&self) -> StreamType
fn stream_type(&self) -> StreamType
Get the StreamType
.
Sourcefn to_base_id(&self) -> StreamId
fn to_base_id(&self) -> StreamId
Get the StreamId
without the commit.
Provided Methods§
Sourcefn to_base36_string(&self) -> String
fn to_base36_string(&self) -> String
Encode the StreamRef
into a string.