pub struct ServerFields {
pub transport: Option<Transport>,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub cwd: Option<String>,
pub url: Option<String>,
pub headers: Option<BTreeMap<String, String>>,
pub env: Option<BTreeMap<String, String>>,
}Expand description
Launch and connection fields. Used for [os.<name>] overrides and
machine overlay server overrides.
Fields§
§transport: Option<Transport>§command: Option<String>§args: Option<Vec<String>>§cwd: Option<String>§url: Option<String>§headers: Option<BTreeMap<String, String>>§env: Option<BTreeMap<String, String>>Implementations§
Source§impl ServerFields
impl ServerFields
Sourcepub fn merged(&self, over: &ServerFields) -> ServerFields
pub fn merged(&self, over: &ServerFields) -> ServerFields
over deep-merged over self: env and headers merge key by key,
everything else is replaced (SPEC 6.2).
Trait Implementations§
Source§impl Clone for ServerFields
impl Clone for ServerFields
Source§impl Debug for ServerFields
impl Debug for ServerFields
Source§impl Default for ServerFields
impl Default for ServerFields
Source§impl<'de> Deserialize<'de> for ServerFields
impl<'de> Deserialize<'de> for ServerFields
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 JsonSchema for ServerFields
impl JsonSchema for ServerFields
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ServerFields
impl PartialEq for ServerFields
Source§impl Serialize for ServerFields
impl Serialize for ServerFields
impl StructuralPartialEq for ServerFields
Auto Trait Implementations§
impl Forget for ServerFields
impl Freeze for ServerFieldswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for ServerFields
impl RefUnwindSafe for ServerFields
impl Send for ServerFields
impl Sync for ServerFields
impl Unpin for ServerFields
impl UnsafeUnpin for ServerFieldswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for ServerFields
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