Standardize unimplemented API failures
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSD`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSD;
|
||||
impl OSD {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSD";
|
||||
@@ -11,7 +11,7 @@ impl OSD {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDArray`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDArray;
|
||||
impl OSDArray {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDArray";
|
||||
@@ -19,7 +19,7 @@ impl OSDArray {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDBinary`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDBinary;
|
||||
impl OSDBinary {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDBinary";
|
||||
@@ -27,7 +27,7 @@ impl OSDBinary {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDBoolean`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDBoolean;
|
||||
impl OSDBoolean {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDBoolean";
|
||||
@@ -35,7 +35,7 @@ impl OSDBoolean {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDDate`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDDate;
|
||||
impl OSDDate {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDDate";
|
||||
@@ -43,7 +43,7 @@ impl OSDDate {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDException`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDException;
|
||||
impl OSDException {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDException";
|
||||
@@ -51,7 +51,7 @@ impl OSDException {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.StructuredData.OSDFormat`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDFormat;
|
||||
impl OSDFormat {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDFormat";
|
||||
@@ -59,7 +59,7 @@ impl OSDFormat {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDInteger`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDInteger;
|
||||
impl OSDInteger {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDInteger";
|
||||
@@ -67,7 +67,7 @@ impl OSDInteger {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDLlsdXml`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDLlsdXml;
|
||||
impl OSDLlsdXml {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDLlsdXml";
|
||||
@@ -75,7 +75,7 @@ impl OSDLlsdXml {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDMap`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDMap;
|
||||
impl OSDMap {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDMap";
|
||||
@@ -83,7 +83,7 @@ impl OSDMap {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDParser`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDParser;
|
||||
impl OSDParser {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDParser";
|
||||
@@ -91,7 +91,7 @@ impl OSDParser {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDReal`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDReal;
|
||||
impl OSDReal {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDReal";
|
||||
@@ -99,7 +99,7 @@ impl OSDReal {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDString`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDString;
|
||||
impl OSDString {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDString";
|
||||
@@ -107,7 +107,7 @@ impl OSDString {
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.StructuredData.OSDType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDType;
|
||||
impl OSDType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDType";
|
||||
@@ -115,7 +115,7 @@ impl OSDType {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDUUID`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDUUID;
|
||||
impl OSDUUID {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDUUID";
|
||||
@@ -123,7 +123,7 @@ impl OSDUUID {
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.StructuredData.OSDUri`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct OSDUri;
|
||||
impl OSDUri {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.StructuredData.OSDUri";
|
||||
|
||||
@@ -4,3 +4,4 @@ mod generated;
|
||||
|
||||
pub use generated::*;
|
||||
pub use libremetaverse_types as types;
|
||||
pub use libremetaverse_types::NotImplemented as Error;
|
||||
|
||||
Reference in New Issue
Block a user