MCPcopy Create free account
hub / github.com/bajrangCoder/setu / file

Method file

src/entities/request.rs:88–94  ·  view source on GitHub ↗
(key: impl Into<String>, path: impl Into<String>)

Source from the content-addressed store, hash-verified

86 }
87
88 pub fn file(key: impl Into<String>, path: impl Into<String>) -> Self {
89 Self {
90 key: key.into(),
91 value: String::new(),
92 file_path: Some(path.into()),
93 }
94 }
95
96 pub fn is_file(&self) -> bool {
97 self.file_path.is_some()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected