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

Method into_string

crates/bindings/src/http.rs:701–703  ·  view source on GitHub ↗

Convert the body into a [`String`], erroring if it is not valid UTF-8.

(self)

Source from the content-addressed store, hash-verified

699
700 /// Convert the body into a [`String`], erroring if it is not valid UTF-8.
701 pub fn into_string(self) -> Result<String, std::string::FromUtf8Error> {
702 String::from_utf8(self.into_bytes().into())
703 }
704
705 /// Convert the body into a [`String`], replacing invalid UTF-8 with
706 /// `U+FFFD REPLACEMENT CHARACTER`, which looks like this: �.

Callers 13

read_dir_sortedFunction · 0.45
_type_exprFunction · 0.45
type_insertFunction · 0.45
type_updateFunction · 0.45
type_and_rewrite_setFunction · 0.45
current_versionMethod · 0.45
installed_versionsMethod · 0.45
ensure_local_feedFunction · 0.45
try_fromMethod · 0.45
rls_rules_for_tableMethod · 0.45
convert_responseFunction · 0.45
into_string_lossyMethod · 0.45

Calls 1

into_bytesMethod · 0.45

Tested by

no test coverage detected