Serializer¶
-
class
oslo_messaging.
Serializer
¶ Generic (de-)serialization definition base class.
-
abstract
deserialize_context
(ctxt)¶ Deserialize a dictionary into a request context.
- Parameters
ctxt – Request context dictionary
- Returns
Deserialized form of entity
-
abstract
deserialize_entity
(ctxt, entity)¶ Deserialize something from primitive form.
- Parameters
ctxt – Request context, in deserialized form
entity – Primitive to be deserialized
- Returns
Deserialized form of entity
-
abstract
serialize_context
(ctxt)¶ Serialize a request context into a dictionary.
- Parameters
ctxt – Request context
- Returns
Serialized form of context
-
abstract
serialize_entity
(ctxt, entity)¶ Serialize something to primitive form.
- Parameters
ctxt – Request context, in deserialized form
entity – Entity to be serialized
- Returns
Serialized form of entity
-
abstract
-
class
oslo_messaging.
NoOpSerializer
¶ A serializer that does nothing.