Struct genet_sdk::layer::Payload [−][src]
#[repr(C)]pub struct Payload { /* fields omitted */ }
A payload object.
Methods
impl Payload
[src]
impl Payload
pub fn new<B, T>(data: B, id: T) -> Payload where
B: Into<ByteSlice>,
T: Into<Token>,
[src]
pub fn new<B, T>(data: B, id: T) -> Payload where
B: Into<ByteSlice>,
T: Into<Token>,
Creates a new payload.
pub fn with_typ<B, T, U>(data: B, id: T, typ: U) -> Payload where
B: Into<ByteSlice>,
T: Into<Token>,
U: Into<Token>,
[src]
pub fn with_typ<B, T, U>(data: B, id: T, typ: U) -> Payload where
B: Into<ByteSlice>,
T: Into<Token>,
U: Into<Token>,
Creates a new payload with the given type.
pub fn id(&self) -> Token
[src]
pub fn id(&self) -> Token
Returns the ID of self.
pub fn typ(&self) -> Token
[src]
pub fn typ(&self) -> Token
Returns the type of self.
pub fn data(&self) -> ByteSlice
[src]
pub fn data(&self) -> ByteSlice
Returns the data of self.