Trait Object

Source
pub trait Object {
    type Id: AsCursorOpt + FromCursor;

    // Required methods
    fn id(&self) -> &Self::Id;
    fn into_id(self) -> Self::Id;
}
Expand description

Implemented by types which represent stripe objects.

Required Associated Types§

Source

type Id: AsCursorOpt + FromCursor

The canonical id type for this object.

Required Methods§

Source

fn id(&self) -> &Self::Id

The id of the object.

Source

fn into_id(self) -> Self::Id

The owned id of the object.

Implementors§