pub struct NetworkResource {Show 17 fields
pub attachable: Option<bool>,
pub config_from: Option<ConfigReference>,
pub config_only: Option<bool>,
pub containers: Option<HashMap<String, EndpointResource>>,
pub created: Option<String>,
pub driver: Option<String>,
pub enable_i_pv6: Option<bool>,
pub ipam: Option<Ipam>,
pub id: Option<String>,
pub ingress: Option<bool>,
pub internal: Option<bool>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub options: Option<HashMap<String, String>>,
pub peers: Option<Vec<PeerInfo>>,
pub scope: Option<String>,
pub services: Option<HashMap<String, ServiceInfo>>,
}
Available on crate feature
v5
only.Expand description
NetworkResource is the body of the “get network” http response message
Fields§
§attachable: Option<bool>
§config_from: Option<ConfigReference>
§config_only: Option<bool>
§containers: Option<HashMap<String, EndpointResource>>
§created: Option<String>
§driver: Option<String>
§enable_i_pv6: Option<bool>
§ipam: Option<Ipam>
§id: Option<String>
§ingress: Option<bool>
§internal: Option<bool>
§labels: Option<HashMap<String, String>>
§name: Option<String>
§options: Option<HashMap<String, String>>
§peers: Option<Vec<PeerInfo>>
§scope: Option<String>
§services: Option<HashMap<String, ServiceInfo>>
Trait Implementations§
Source§impl Debug for NetworkResource
impl Debug for NetworkResource
Source§impl Default for NetworkResource
impl Default for NetworkResource
Source§fn default() -> NetworkResource
fn default() -> NetworkResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkResource
impl<'de> Deserialize<'de> for NetworkResource
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 NetworkResource
impl RefUnwindSafe for NetworkResource
impl Send for NetworkResource
impl Sync for NetworkResource
impl Unpin for NetworkResource
impl UnwindSafe for NetworkResource
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