Struct strymon_model::TopicType [] [src]

pub struct TopicType {
    pub name: String,
}

A representation of the type of data found in a topic.

The topic type is currently only defined by the name of a type, but it might be extended in the future to contain a machine-readable schema definition of the contained data type.

Fields

The type_name of the type found in this topic.

Methods

impl TopicType
[src]

[src]

Creates a new instance for a given type.

Examples

use strymon_model::TopicType;
assert_eq!(TopicType::of::<Vec<i32>>().name, "std::vec::Vec<i32>");

Trait Implementations

impl Clone for TopicType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TopicType
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for TopicType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for TopicType
[src]

impl Hash for TopicType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Abomonation for TopicType
[src]

[src]

Write any additional information about &self beyond its binary representation. Read more

[src]

Reports the number of further bytes required to entomb self.

[src]

Recover any information for &mut self not evident from its binary representation. Read more

impl TypeName for TopicType
[src]

[src]

Formats the fully qualified type name using the given formatter.

Returns the canoncial, concrete name of a type as a string. # Examples Read more

Returns the canoncial type of a value as a string. # Examples Read more