pub struct Input {
pub id: String,
pub title: String,
pub input_type: String,
pub name: String,
pub global: bool,
pub node: String,
pub created_at: Option<SystemTime>,
pub creator_user_id: String,
pub attributes: Map<String, Value>,
pub static_fields: Map<String, Value>,
}Expand description
A message input (GET /api/system/inputs).
Fields§
§id: StringInput id.
title: StringTitle.
input_type: StringInput class, for example INPUT_TYPE_GELF_TCP.
name: StringDisplay name of the type.
global: boolWhether the input runs on every node.
node: StringNode of a local input.
created_at: Option<SystemTime>Creation time.
creator_user_id: StringCreator.
attributes: Map<String, Value>Configuration. Secret attributes come back as {"is_set": bool} objects.
static_fields: Map<String, Value>Static fields added to every message.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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 Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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