pub struct PushgatewayConfig {
pub endpoint: String,
pub job: String,
pub instance: Option<String>,
}Expand description
Pushgateway 导出配置
Fields§
§endpoint: StringPushgateway 地址(如 http://localhost:9091)
job: String作业名(job label)
instance: Option<String>实例标签(可选)
Trait Implementations§
Source§impl Clone for PushgatewayConfig
impl Clone for PushgatewayConfig
Source§fn clone(&self) -> PushgatewayConfig
fn clone(&self) -> PushgatewayConfig
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 PushgatewayConfig
impl Debug for PushgatewayConfig
Auto Trait Implementations§
impl Freeze for PushgatewayConfig
impl RefUnwindSafe for PushgatewayConfig
impl Send for PushgatewayConfig
impl Sync for PushgatewayConfig
impl Unpin for PushgatewayConfig
impl UnsafeUnpin for PushgatewayConfig
impl UnwindSafe for PushgatewayConfig
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