Struct raystack_core::Ref [−][src]
pub struct Ref(_);
Expand description
A Haystack Ref.
Implementations
Create a new Ref
.
Example
use raystack_core::Ref; let my_ref = Ref::new("@p:bigProject:r:24efe1c4-24aef280".to_string()).unwrap();
Return a Ref by decoding a ref which was encoded in a JSON string. In
raw JSON strings, refs are formatted with a r:
prefix instead of
an @
sign.
Example
use raystack_core::Ref; let json_str = "r:p:bigProject:r:24efe1c4-24aef280"; let my_ref = Ref::from_encoded_json_string(json_str).unwrap();
Return a string containing this ref, encoded with a r:
prefix instead
of with an @
sign. This representation for refs is used in raw
JSON strings sent to and from a Haystack server.
Convert this ref into a string.
Return this ref as an Axon ref literal.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ref
impl UnwindSafe for Ref
Blanket Implementations
Mutably borrows from an owned value. Read more