Struct witchcraft_server::logging::api::Organization
source · pub struct Organization { /* private fields */ }Implementations§
source§impl Organization
impl Organization
sourcepub fn new<T, U>(id: T, reason: U) -> Organization
pub fn new<T, U>(id: T, reason: U) -> Organization
Constructs a new instance of the type.
sourcepub fn builder() -> BuilderStage0
pub fn builder() -> BuilderStage0
Returns a new builder.
Trait Implementations§
source§impl Clone for Organization
impl Clone for Organization
source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
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 Organization
impl Debug for Organization
source§impl<'de> Deserialize<'de> for Organization
impl<'de> Deserialize<'de> for Organization
source§fn deserialize<D>(d: D) -> Result<Organization, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Organization, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Organization> for BuilderStage2
impl From<Organization> for BuilderStage2
source§fn from(value: Organization) -> Self
fn from(value: Organization) -> Self
Converts to this type from the input type.
source§impl Hash for Organization
impl Hash for Organization
source§impl Ord for Organization
impl Ord for Organization
source§fn cmp(&self, other: &Organization) -> Ordering
fn cmp(&self, other: &Organization) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Organization
impl PartialEq for Organization
source§fn eq(&self, other: &Organization) -> bool
fn eq(&self, other: &Organization) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Organization
impl PartialOrd for Organization
source§fn partial_cmp(&self, other: &Organization) -> Option<Ordering>
fn partial_cmp(&self, other: &Organization) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Organization
impl Serialize for Organization
impl Eq for Organization
impl StructuralEq for Organization
impl StructuralPartialEq for Organization
Auto Trait Implementations§
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnwindSafe for Organization
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
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>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more