#[non_exhaustive]pub enum NameStrategy {
NodeId(String),
MultisliceParams(Box<MultisliceParams>),
}Expand description
Either a node_id or multislice_params.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NodeId(String)
Optional. The unqualified resource name. Should follow the
^[A-Za-z0-9_.~+%-]+$ regex format. This is only specified when
requesting a single node. In case of multislice requests,
multislice_params must be populated instead.
MultisliceParams(Box<MultisliceParams>)
Optional. Fields to specify in case of multislice request.
Trait Implementations§
Source§impl Clone for NameStrategy
impl Clone for NameStrategy
Source§fn clone(&self) -> NameStrategy
fn clone(&self) -> NameStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NameStrategy
impl Debug for NameStrategy
Source§impl PartialEq for NameStrategy
impl PartialEq for NameStrategy
impl StructuralPartialEq for NameStrategy
Auto Trait Implementations§
impl Freeze for NameStrategy
impl RefUnwindSafe for NameStrategy
impl Send for NameStrategy
impl Sync for NameStrategy
impl Unpin for NameStrategy
impl UnsafeUnpin for NameStrategy
impl UnwindSafe for NameStrategy
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