pub struct Builder { /* private fields */ }
Expand description
Builder for ipfs backend.
Implementations§
source§impl Builder
impl Builder
sourcepub fn root(&mut self, root: &str) -> &mut Self
pub fn root(&mut self, root: &str) -> &mut Self
Set root of ipfs backend.
Root must be a valid ipfs address like the following:
/ipfs/QmPpCt1aYGb9JWJRmXRUnmJtVgeFFTJGzWFYEEX7bo9zGJ/
(IPFS with CID v0)/ipfs/bafybeibozpulxtpv5nhfa2ue3dcjx23ndh3gwr5vwllk7ptoyfwnfjjr4q/
(IPFS with CID v1)/ipns/opendal.databend.rs/
(IPNS)
sourcepub fn endpoint(&mut self, endpoint: &str) -> &mut Self
pub fn endpoint(&mut self, endpoint: &str) -> &mut Self
Set endpoint if ipfs backend.
Endpoint must be a valid ipfs gateway which passed the IPFS Gateway Checker
Popular choices including:
https://ipfs.io
https://w3s.link
https://dweb.link
https://cloudflare-ipfs.com
http://127.0.0.1:8080
(ipfs daemon in local)