[−][src]Struct grapl_graph_descriptions::graph_description::Asset
Fields
node_key: String
asset_id: Option<String>
hostname: Option<String>
mac_address: Option<String>
first_seen_timestamp: u64
last_seen_timestamp: u64
Implementations
impl Asset
[src]
pub fn new(
asset_id: impl Into<Option<String>>,
hostname: impl Into<Option<String>>,
mac_address: impl Into<Option<String>>,
first_seen_timestamp: u64,
last_seen_timestamp: u64
) -> Self
[src]
asset_id: impl Into<Option<String>>,
hostname: impl Into<Option<String>>,
mac_address: impl Into<Option<String>>,
first_seen_timestamp: u64,
last_seen_timestamp: u64
) -> Self
pub fn into_json(self) -> Value
[src]
Trait Implementations
impl Clone for Asset
[src]
impl Debug for Asset
[src]
impl Default for Asset
[src]
impl<'de> Deserialize<'de> for Asset
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Asset
[src]
impl From<Asset> for Node
[src]
impl Message for Asset
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl NodeT for Asset
[src]
fn get_asset_id(&self) -> Option<&str>
[src]
fn set_asset_id(&mut self, asset_id: impl Into<String>)
[src]
fn get_node_key(&self) -> &str
[src]
fn set_node_key(&mut self, node_key: impl Into<String>)
[src]
fn merge(&mut self, other: &Self) -> bool
[src]
fn merge_into(&mut self, other: Self) -> bool
[src]
fn clone_asset_id(&self) -> Option<String>
[src]
fn clone_node_key(&self) -> String
[src]
impl PartialEq<Asset> for Asset
[src]
impl Serialize for Asset
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Asset
[src]
impl StructuralPartialEq for Asset
[src]
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,