pub struct Selector {
pub heads: Vec<String>,
pub max_depth: Option<u32>,
pub min_depth: Option<u32>,
pub paths: Vec<Vec<String>>,
pub prune_heads: Vec<String>,
}Expand description
Generic structural selector; source bytes are always supplied out of band.
JSON schema
{
"description": "Generic structural selector; source bytes are always supplied out of band.",
"type": "object",
"properties": {
"heads": {
"type": "array",
"items": {
"type": "string"
}
},
"max_depth": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"min_depth": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"paths": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"prune_heads": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}Fields§
§heads: Vec<String>§max_depth: Option<u32>§min_depth: Option<u32>§paths: Vec<Vec<String>>§prune_heads: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selector
impl<'de> Deserialize<'de> for Selector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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