pub struct SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem {
pub name: Option<String>,
pub options: Option<HashMap<String, String>>,
}Expand description
The log driver to use for tasks created in the orchestrator if unspecified by a service.
Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated.
Fields§
§name: Option<String>The log driver to use as a default for new tasks.
options: Option<HashMap<String, String>>Driver-specific options for the selectd log driver, specified as key/value pairs.
Trait Implementations§
Source§impl Clone for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl Clone for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
Source§fn clone(&self) -> SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
fn clone(&self) -> SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
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<'de> Deserialize<'de> for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl<'de> Deserialize<'de> for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
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 StructuralPartialEq for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
Auto Trait Implementations§
impl Freeze for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl RefUnwindSafe for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl Send for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl Sync for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl Unpin for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl UnsafeUnpin for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
impl UnwindSafe for SwarmSpecTaskDefaultsInlineItemLogDriverInlineItem
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