Struct oapi::OApiSchemaString [−][src]
pub struct OApiSchemaString { /* fields omitted */ }
Implementations
impl OApiSchemaString
[src]
impl OApiSchemaString
[src]pub fn pattern(&self) -> &Option<String>
[src]
A regex this string should support
pub fn min_length(&self) -> &Option<u64>
[src]
The lower bound for the string length
pub fn max_length(&self) -> &Option<u64>
[src]
The upper bound for the string length
pub fn format(&self) -> &Option<OApiStringFormat>
[src]
The format to use for the string
pub fn enum_(&self) -> &Option<Vec<String>>
[src]
An enum of valid values
pub fn nullable(&self) -> &Option<OperatorSelector<bool>>
[src]
Mark the string as nullable
pub fn read_only(&self) -> &Option<OperatorSelector<bool>>
[src]
Mark the string as read-only
pub fn write_only(&self) -> &Option<OperatorSelector<bool>>
[src]
Mark the string as write-only
pub fn example(&self) -> &Option<OperatorSelector<Value>>
[src]
An example for the string
pub fn deprecated(&self) -> &Option<OperatorSelector<bool>>
[src]
Mark this string as deprecated
pub fn discriminator(
&self
) -> &Option<OperatorSelector<OApiSchemaDiscriminator>>
[src]
&self
) -> &Option<OperatorSelector<OApiSchemaDiscriminator>>
A discriminator for this string
pub fn external_docs(
&self
) -> &Option<OperatorSelector<OApiExternalDocumentation>>
[src]
&self
) -> &Option<OperatorSelector<OApiExternalDocumentation>>
External documentation for this string, if any
Trait Implementations
impl Clone for OApiSchemaString
[src]
impl Clone for OApiSchemaString
[src]fn clone(&self) -> OApiSchemaString
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for OApiSchemaString
[src]
impl Default for OApiSchemaString
[src]fn default() -> OApiSchemaString
[src]
impl<'de> Deserialize<'de> for OApiSchemaString where
OApiSchemaString: Default,
[src]
impl<'de> Deserialize<'de> for OApiSchemaString where
OApiSchemaString: Default,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl OApiCheckTrait for OApiSchemaString
[src]
impl OApiCheckTrait for OApiSchemaString
[src]fn oapi_check(
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
[src]
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
fn oapi_check_inner(
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
[src]
&self,
root: &SparseRoot<OApiDocument>,
bread_crumb: &mut Vec<String>
) -> Result<(), OApiError>
impl OApiExtensionExtractor for OApiSchemaString
[src]
impl OApiExtensionExtractor for OApiSchemaString
[src]fn oapi_raw_ext(&self) -> &HashMap<String, Value>
[src]
fn oapi_extract_ext<S>(
&self,
root: &SparseRoot<OApiDocument>,
key: &str
) -> Result<S, OApiError> where
S: DeserializeOwned + SparsableTrait + Serialize + OApiCheckTrait,
[src]
&self,
root: &SparseRoot<OApiDocument>,
key: &str
) -> Result<S, OApiError> where
S: DeserializeOwned + SparsableTrait + Serialize + OApiCheckTrait,
impl PartialEq<OApiSchemaString> for OApiSchemaString
[src]
impl PartialEq<OApiSchemaString> for OApiSchemaString
[src]fn eq(&self, other: &OApiSchemaString) -> bool
[src]
fn ne(&self, other: &OApiSchemaString) -> bool
[src]
impl Serialize for OApiSchemaString
[src]
impl Serialize for OApiSchemaString
[src]impl Sparsable for OApiSchemaString
[src]
impl Sparsable for OApiSchemaString
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
pub fn sparse_updt(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
pub fn check_depth(&self, depth: u32) -> Result<(), SparseError>
[src]
impl StructuralPartialEq for OApiSchemaString
[src]
impl StructuralPartialEq for OApiSchemaString
[src]Auto Trait Implementations
impl RefUnwindSafe for OApiSchemaString
impl RefUnwindSafe for OApiSchemaString
impl Send for OApiSchemaString
impl Send for OApiSchemaString
impl Sync for OApiSchemaString
impl Sync for OApiSchemaString
impl Unpin for OApiSchemaString
impl Unpin for OApiSchemaString
impl UnwindSafe for OApiSchemaString
impl UnwindSafe for OApiSchemaString