pub struct RequestGlobalStatePath {
pub global_state_category: Option<GlobalStateCategory>,
pub global_state_root: Option<RequestGlobalStateRoot>,
pub dec_id: Option<ObjectId>,
pub req_path: Option<String>,
}
Fields§
§global_state_category: Option<GlobalStateCategory>
§global_state_root: Option<RequestGlobalStateRoot>
§dec_id: Option<ObjectId>
§req_path: Option<String>
Implementations§
Source§impl RequestGlobalStatePath
impl RequestGlobalStatePath
pub fn new( dec_id: Option<ObjectId>, req_path: Option<impl Into<String>>, ) -> Self
pub fn new_system_dec(req_path: Option<impl Into<String>>) -> Self
pub fn set_root(&mut self, root: ObjectId)
pub fn set_dec_root(&mut self, dec_root: ObjectId)
pub fn category(&self) -> GlobalStateCategory
pub fn req_path(&self) -> Cow<'_, str>
pub fn dec<'a>(&'a self, source: &'a RequestSourceInfo) -> &ObjectId
pub fn parse(req_path: &str) -> BuckyResult<Self>
pub fn format_string(&self) -> String
pub fn match_target(&self, target: &Self) -> bool
Trait Implementations§
Source§impl Clone for RequestGlobalStatePath
impl Clone for RequestGlobalStatePath
Source§fn clone(&self) -> RequestGlobalStatePath
fn clone(&self) -> RequestGlobalStatePath
Returns a copy 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 RequestGlobalStatePath
impl Debug for RequestGlobalStatePath
Source§impl Display for RequestGlobalStatePath
impl Display for RequestGlobalStatePath
Source§impl FromStr for RequestGlobalStatePath
impl FromStr for RequestGlobalStatePath
Source§impl PartialEq for RequestGlobalStatePath
impl PartialEq for RequestGlobalStatePath
impl Eq for RequestGlobalStatePath
impl StructuralPartialEq for RequestGlobalStatePath
Auto Trait Implementations§
impl Freeze for RequestGlobalStatePath
impl RefUnwindSafe for RequestGlobalStatePath
impl Send for RequestGlobalStatePath
impl Sync for RequestGlobalStatePath
impl Unpin for RequestGlobalStatePath
impl UnwindSafe for RequestGlobalStatePath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more