pub struct GrokSessionId(/* private fields */);Expand description
Grok Build’s authoritative sessionId — the sole session correlation identity
for the Grok connector profile.
Implementations§
Source§impl GrokSessionId
impl GrokSessionId
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Wrap a Grok-returned session id.
§Panics
Panics if value fails identity validation. Prefer Self::try_new.
Sourcepub fn as_external(&self) -> &ExternalSessionId
pub fn as_external(&self) -> &ExternalSessionId
View as a generic external session id.
Sourcepub fn into_external(self) -> ExternalSessionId
pub fn into_external(self) -> ExternalSessionId
Convert into a generic external session id.
Trait Implementations§
Source§impl Clone for GrokSessionId
impl Clone for GrokSessionId
Source§fn clone(&self) -> GrokSessionId
fn clone(&self) -> GrokSessionId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GrokSessionId
impl Debug for GrokSessionId
Source§impl<'de> Deserialize<'de> for GrokSessionId
impl<'de> Deserialize<'de> for GrokSessionId
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
impl Eq for GrokSessionId
Source§impl From<GrokSessionId> for ExternalSessionId
impl From<GrokSessionId> for ExternalSessionId
Source§fn from(value: GrokSessionId) -> Self
fn from(value: GrokSessionId) -> Self
Converts to this type from the input type.
Source§impl Hash for GrokSessionId
impl Hash for GrokSessionId
Source§impl PartialEq for GrokSessionId
impl PartialEq for GrokSessionId
Source§impl Serialize for GrokSessionId
impl Serialize for GrokSessionId
impl StructuralPartialEq for GrokSessionId
Auto Trait Implementations§
impl Freeze for GrokSessionId
impl RefUnwindSafe for GrokSessionId
impl Send for GrokSessionId
impl Sync for GrokSessionId
impl Unpin for GrokSessionId
impl UnsafeUnpin for GrokSessionId
impl UnwindSafe for GrokSessionId
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