MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / into_string

Method into_string

crates/client-api/src/util.rs:69–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67
68impl NameOrIdentity {
69 pub fn into_string(self) -> String {
70 match self {
71 NameOrIdentity::Identity(addr) => Identity::from(addr).to_hex().to_string(),
72 NameOrIdentity::Name(name) => name.into(),
73 }
74 }
75
76 pub fn name(&self) -> Option<&DatabaseName> {
77 if let Self::Name(name) = self {

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.45
to_hexMethod · 0.45

Tested by

no test coverage detected