pub enum OcsFormat {
Json,
Xml,
}Expand description
Serialisation format to request from an OCS endpoint.
OCS answers in XML unless asked otherwise, so a JSON client must always
send format=json — this enum exists to keep that requirement visible
instead of burying it in a string literal.
Variants§
Implementations§
Trait Implementations§
impl Copy for OcsFormat
impl Eq for OcsFormat
impl StructuralPartialEq for OcsFormat
Auto Trait Implementations§
impl Freeze for OcsFormat
impl RefUnwindSafe for OcsFormat
impl Send for OcsFormat
impl Sync for OcsFormat
impl Unpin for OcsFormat
impl UnsafeUnpin for OcsFormat
impl UnwindSafe for OcsFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more