pub struct CmnEndpoint {
pub kind: String,
pub url: String,
pub hash: String,
pub hashes: Vec<String>,
pub format: Option<String>,
pub delta_url: Option<String>,
pub protocol_version: Option<String>,
}Expand description
A single typed endpoint entry in cmn.json.
Fields§
§kind: String§url: String§hash: StringPrimary mycelium content hash (authoritative metadata and featured spores).
hashes: Vec<String>Optional overflow shard hashes for large domains (spore lists merged, metadata ignored).
format: Option<String>§delta_url: Option<String>§protocol_version: Option<String>Protocol version this endpoint serves (e.g. “v1”). Defaults to “v1” when absent.
Implementations§
Source§impl CmnEndpoint
impl CmnEndpoint
Trait Implementations§
Source§impl Clone for CmnEndpoint
impl Clone for CmnEndpoint
Source§fn clone(&self) -> CmnEndpoint
fn clone(&self) -> CmnEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CmnEndpoint
impl Debug for CmnEndpoint
Source§impl<'de> Deserialize<'de> for CmnEndpoint
impl<'de> Deserialize<'de> for CmnEndpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CmnEndpoint
impl RefUnwindSafe for CmnEndpoint
impl Send for CmnEndpoint
impl Sync for CmnEndpoint
impl Unpin for CmnEndpoint
impl UnsafeUnpin for CmnEndpoint
impl UnwindSafe for CmnEndpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more