pub struct CatalogSource {
pub id: String,
pub version: String,
pub registry: Option<String>,
}Fields§
§id: StringThe catalog entry id: a built-in id, or the server’s full registry
name when registry is set.
version: StringThat entry’s version at install time.
registry: Option<String>The MCP registry this entry came from, when it did not come from the catalog compiled into the binary.
Optional so a built-in install writes exactly what it always wrote: an older Tuff reading a newer lockfile ignores the field rather than failing to parse the row.
Trait Implementations§
Source§impl Clone for CatalogSource
impl Clone for CatalogSource
Source§fn clone(&self) -> CatalogSource
fn clone(&self) -> CatalogSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CatalogSource
impl Debug for CatalogSource
Source§impl<'de> Deserialize<'de> for CatalogSource
impl<'de> Deserialize<'de> for CatalogSource
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
impl Eq for CatalogSource
Source§impl PartialEq for CatalogSource
impl PartialEq for CatalogSource
Source§impl Serialize for CatalogSource
impl Serialize for CatalogSource
impl StructuralPartialEq for CatalogSource
Auto Trait Implementations§
impl Freeze for CatalogSource
impl RefUnwindSafe for CatalogSource
impl Send for CatalogSource
impl Sync for CatalogSource
impl Unpin for CatalogSource
impl UnsafeUnpin for CatalogSource
impl UnwindSafe for CatalogSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.