Struct quartz_cli::endpoint::EndpointHandle
source · pub struct EndpointHandle {
pub endpoint: Option<Endpoint>,
pub path: Vec<String>,
}Fields§
§endpoint: Option<Endpoint>§path: Vec<String>List of ordered parent names
Implementations§
source§impl EndpointHandle
impl EndpointHandle
sourcepub const QUARTZ: Self = _
pub const QUARTZ: Self = _
Points to top-level quartz folder.
This constant can be used to traverse through all specifications starting from the top one.
pub fn from_handle<S>(handle: S) -> Selfwhere S: AsRef<str>,
pub fn from_state(state: &State) -> Option<Self>
pub fn head(&self) -> String
pub fn dir(&self) -> PathBuf
pub fn handle(&self) -> String
pub fn exists(&self) -> bool
pub fn children(&self) -> Vec<EndpointHandle>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EndpointHandle
impl Send for EndpointHandle
impl Sync for EndpointHandle
impl Unpin for EndpointHandle
impl UnwindSafe for EndpointHandle
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