pub struct EngineAdvertisement {
pub apis: Option<Vec<String>>,
pub models: Option<Vec<String>>,
pub status: Option<String>,
pub url: Option<String>,
}Fields§
§apis: Option<Vec<String>>APIs are the wire formats the engine serves on that one port: "openai", "anthropic", or both.
models: Option<Vec<String>>Models are the model ids the node’s own GET /v1/models answered with — what this GPU can actually be asked for.
status: Option<String>Status is "ready" when the node’s engine answered, "unreachable" when it did not. Advertised is not the same as serving, and this is the difference.
url: Option<String>URL is the base address the node advertised its engine on — where a model call to this GPU is sent. The node chose it, so reaching it is a question about the node’s network, not about this surface.
Implementations§
Source§impl EngineAdvertisement
impl EngineAdvertisement
pub fn new() -> EngineAdvertisement
Trait Implementations§
Source§impl Clone for EngineAdvertisement
impl Clone for EngineAdvertisement
Source§fn clone(&self) -> EngineAdvertisement
fn clone(&self) -> EngineAdvertisement
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 EngineAdvertisement
impl Debug for EngineAdvertisement
Source§impl Default for EngineAdvertisement
impl Default for EngineAdvertisement
Source§fn default() -> EngineAdvertisement
fn default() -> EngineAdvertisement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EngineAdvertisement
impl<'de> Deserialize<'de> for EngineAdvertisement
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
Source§impl PartialEq for EngineAdvertisement
impl PartialEq for EngineAdvertisement
Source§impl Serialize for EngineAdvertisement
impl Serialize for EngineAdvertisement
impl StructuralPartialEq for EngineAdvertisement
Auto Trait Implementations§
impl Freeze for EngineAdvertisement
impl RefUnwindSafe for EngineAdvertisement
impl Send for EngineAdvertisement
impl Sync for EngineAdvertisement
impl Unpin for EngineAdvertisement
impl UnsafeUnpin for EngineAdvertisement
impl UnwindSafe for EngineAdvertisement
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