pub enum ServerResponse {
Hello {
server_name: String,
version: ProtocolVersion,
capabilities: Vec<Capability>,
},
Runs {
runs: Vec<RunSnapshot>,
},
Providers {
providers: Vec<ProviderStatus>,
},
AccountUsage {
providers: Vec<ProviderAccountUsage>,
},
Run {
run: RunSnapshot,
},
Accepted,
Error {
code: ErrorCode,
message: String,
},
}Variants§
Hello
Runs
Fields
§
runs: Vec<RunSnapshot>Providers
Fields
§
providers: Vec<ProviderStatus>AccountUsage
Fields
§
providers: Vec<ProviderAccountUsage>Run
Fields
§
run: RunSnapshotAccepted
Error
Trait Implementations§
Source§impl Clone for ServerResponse
impl Clone for ServerResponse
Source§fn clone(&self) -> ServerResponse
fn clone(&self) -> ServerResponse
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 ServerResponse
impl Debug for ServerResponse
Source§impl<'de> Deserialize<'de> for ServerResponse
impl<'de> Deserialize<'de> for ServerResponse
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 ServerResponse
impl PartialEq for ServerResponse
Source§impl Serialize for ServerResponse
impl Serialize for ServerResponse
impl StructuralPartialEq for ServerResponse
Auto Trait Implementations§
impl Freeze for ServerResponse
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnsafeUnpin for ServerResponse
impl UnwindSafe for ServerResponse
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